mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-30 18:51:03 +02:00
tagwall: remove forced strtolower() on TW_URL attributes (closes #145)
This commit is contained in:
parent
ee506d2a05
commit
0033ba181d
@ -145,13 +145,13 @@ class TW_base // TW_lang extends this class
|
|||||||
//
|
//
|
||||||
// TODO: make better url check with parse_url()
|
// TODO: make better url check with parse_url()
|
||||||
|
|
||||||
$val = strtolower($val);
|
// $val = strtolower($val);
|
||||||
if(strpos($val, "http://") === false)
|
if(stripos($val, "http://") === false)
|
||||||
{
|
{
|
||||||
if(strpos($val, "ftp://") === false)
|
if(stripos($val, "ftp://") === false)
|
||||||
if(strpos($val, "email:") === false)
|
if(stripos($val, "email:") === false)
|
||||||
if(strpos($val, "https://") === false)
|
if(stripos($val, "https://") === false)
|
||||||
if(strpos($val, "./") === false) // local relative url
|
if(stripos($val, "./") === false) // local relative url
|
||||||
$val = "http://".$val;
|
$val = "http://".$val;
|
||||||
}
|
}
|
||||||
$this->ATTRIBUTES[$key][1] = $val;
|
$this->ATTRIBUTES[$key][1] = $val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user