diff options
author | Andrew Dolgov <[email protected]> | 2007-08-28 06:17:54 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-28 06:17:54 +0100 |
commit | 0033ba181dc3660d32ff7b4014e793f0fb449e54 (patch) | |
tree | fe59827b3ca891f97ea7841410b63ab34b34882c /tw | |
parent | ee506d2a058edca09bc1921caf0ee029cb73bf8c (diff) |
tagwall: remove forced strtolower() on TW_URL attributes (closes #145)
Diffstat (limited to 'tw')
-rw-r--r-- | tw/lang/TW_base.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tw/lang/TW_base.php b/tw/lang/TW_base.php index ef7db357d..0be6e1be8 100644 --- a/tw/lang/TW_base.php +++ b/tw/lang/TW_base.php @@ -145,13 +145,13 @@ class TW_base // TW_lang extends this class // // TODO: make better url check with parse_url() - $val = strtolower($val);
- if(strpos($val, "http://") === false)
+// $val = strtolower($val);
+ if(stripos($val, "http://") === false)
{
- if(strpos($val, "ftp://") === false)
- if(strpos($val, "email:") === false) - if(strpos($val, "https://") === false) - if(strpos($val, "./") === false) // local relative url + if(stripos($val, "ftp://") === false)
+ if(stripos($val, "email:") === false) + if(stripos($val, "https://") === false) + if(stripos($val, "./") === false) // local relative url $val = "http://".$val;
}
$this->ATTRIBUTES[$key][1] = $val;
|