From: garvinhicking Date: Sat, 3 Jun 2006 22:19:08 +0000 (+0000) Subject: Fix double slash problem X-Git-Tag: 1.0~10 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d4b42b5d41d1a558de57074ae7a1985b192efc1e;p=s9y.git Fix double slash problem --- diff --git a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php index 103501b..d42b278 100644 --- a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php +++ b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php @@ -34,7 +34,7 @@ class serendipity_event_spartacus extends serendipity_event $propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '2.6'); + $propbag->add('version', '2.7'); $propbag->add('requirements', array( 'serendipity' => '0.9', 'smarty' => '2.6.7', @@ -245,6 +245,9 @@ class serendipity_event_spartacus extends serendipity_event function &fetchfile($url, $target, $cacheTimeout = 0, $decode_utf8 = false, $sub = 'plugins') { static $error = false; + // Fix double URL strings. + $url = str_replace('http:/', 'http://', str_replace('//', '/', $url)); + printf(PLUGIN_EVENT_SPARTACUS_FETCHING, '' . basename($url) . ''); echo '
';