From: garvinhicking Date: Sat, 3 Jun 2006 22:19:07 +0000 (+0000) Subject: Fix double slash problem X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=43570ee337c15b26a02e4d309b3d86cfc5df0b04;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 e0c8fd0..d575741 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 '
';