From: Andrew Dolgov Date: Tue, 28 Aug 2007 05:17:54 +0000 (+0100) Subject: tagwall: remove forced strtolower() on TW_URL attributes (closes #145) X-Git-Tag: 1.2.15~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0033ba181dc3660d32ff7b4014e793f0fb449e54;p=tt-rss.git tagwall: remove forced strtolower() on TW_URL attributes (closes #145) --- diff --git a/tw/lang/TW_base.php b/tw/lang/TW_base.php index ef7db357..0be6e1be 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;