Prepend "http://" in front of urls that lack "://". Most urls tend to be websites and adding

http:// where it is missing fixes a bunch of urls in the database
This commit is contained in:
Chris Morgan
2007-06-10 23:58:11 +00:00
committed by WineHQ
parent fc6e645d1a
commit 0838b838a3
2 changed files with 45 additions and 19 deletions

View File

@@ -70,7 +70,9 @@ class Application {
$this->sName = $oRow->appName;
$this->sKeywords = $oRow->keywords;
$this->sDescription = $oRow->description;
$this->sWebpage = $oRow->webPage;
//TODO: we should move the url to the appData table
// and return an id into the appData table here
$this->sWebpage = Url::normalize($oRow->webPage);
$this->sQueued = $oRow->queued;
}