appdb/include url.php
WineHQ
wineowner at wine.codeweavers.com
Sun Jun 10 20:27:29 CDT 2007
ChangeSet ID: 31182
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/06/10 20:27:29
Modified files:
include : url.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
Url::normalize() shouldn't be prepending anything to empty strings
Patch: http://cvs.winehq.org/patch.py?id=31182
Old revision New revision Changes Path
1.19 1.20 +4 -0 appdb/include/url.php
Index: appdb/include/url.php
diff -u -p appdb/include/url.php:1.19 appdb/include/url.php:1.20
--- appdb/include/url.php:1.19 11 Jun 2007 1:27:29 -0000
+++ appdb/include/url.php 11 Jun 2007 1:27:29 -0000
@@ -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)
More information about the wine-cvs
mailing list