From 4b8b4b6f57f2382dc9e4e2140ebe7453b4725357 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 11 Jun 2007 01:27:29 +0000 Subject: [PATCH] Url::normalize() shouldn't be prepending anything to empty strings --- include/url.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/url.php b/include/url.php index 4dee6c8..d9178f1 100644 --- a/include/url.php +++ b/include/url.php @@ -502,6 +502,10 @@ class Url { // and prepend "http://" function normalize($sTheUrl) { + // return if we have an empty string + if($sTheUrl == "") + return $sTheUrl; + // if we already have "://" in the url // we can leave the url alone if(strpos($sTheUrl, "://") === false)