summaryrefslogtreecommitdiff
path: root/lib/Kolab/FreeBusy/Source.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kolab/FreeBusy/Source.php')
-rw-r--r--lib/Kolab/FreeBusy/Source.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Kolab/FreeBusy/Source.php b/lib/Kolab/FreeBusy/Source.php
index 1af5ba3..53c4d0f 100644
--- a/lib/Kolab/FreeBusy/Source.php
+++ b/lib/Kolab/FreeBusy/Source.php
@@ -17,11 +17,12 @@ abstract class Source
public static function factory($url)
{
$config = parse_url($url);
+ $config['url'] = $url;
switch ($config['scheme']) {
case 'file': return new SourceFile($config);
case 'imap': return new SourceIMAP($config);
case 'http':
- case 'https': return new SourceURL($url);
+ case 'https': return new SourceURL($config);
}
trigger_error("Invalid source configuration: " . $url, E_USER_ERROR);