]> git.wh0rd.org Git - tt-rss.git/commitdiff
tagwall: remove forced strtolower() on TW_URL attributes (closes #145)
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 28 Aug 2007 05:17:54 +0000 (06:17 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 28 Aug 2007 05:17:54 +0000 (06:17 +0100)
tw/lang/TW_base.php

index ef7db357d039d4f255c88dd2193bd09a98317245..0be6e1be825f6a323982504e3d8cf4d32fa03893 100644 (file)
@@ -145,13 +145,13 @@ class TW_base             // TW_lang extends this class
                                                                //
                                                                // TODO: make better url check with parse_url()
                                                                \r
-                                                               $val = strtolower($val);\r
-                                                               if(strpos($val, "http://") === false)\r
+//                                                             $val = strtolower($val);\r
+                                                               if(stripos($val, "http://") === false)\r
                                                                {\r
-                                                                       if(strpos($val, "ftp://") === false)\r
-                                                                           if(strpos($val, "email:") === false)
-                                                                               if(strpos($val, "https://") === false)
-                                                                                   if(strpos($val, "./") === false)    // local relative url
+                                                                       if(stripos($val, "ftp://") === false)\r
+                                                                           if(stripos($val, "email:") === false)
+                                                                               if(stripos($val, "https://") === false)
+                                                                                   if(stripos($val, "./") === false)   // local relative url
                                                                                        $val = "http://".$val;\r
                                                                }\r
                                                                $this->ATTRIBUTES[$key][1] = $val;\r