2009-12-08, 05:39 PM
Wondering how I would report this to the issue tracker since it isn't really a bug, nor is it a feature request...
In inc/class_parser.php (1.4.10) on line 848 you have an if that should never be executed. It also as a bad preg_match().
Lines 838-851:
As you can see, the preg_match() in the second if is missing the ^ character to match line start only, however it is a redundant if statement since the first one will have done this to $url before the $fullurl = url;.
Should I report this as a bug with low priority?
In inc/class_parser.php (1.4.10) on line 848 you have an if that should never be executed. It also as a bad preg_match().
Lines 838-851:
if(!preg_match("#^[a-z0-9]+://#i", $url))
{
$url = "http://".$url;
}
$fullurl = $url;
$url = str_replace('&', '&', $url);
$name = str_replace('&', '&', $name);
if(!preg_match("#[a-z0-9]+://#i", $fullurl))
{
$fullurl = "http://".$fullurl;
}
As you can see, the preg_match() in the second if is missing the ^ character to match line start only, however it is a redundant if statement since the first one will have done this to $url before the $fullurl = url;.
Should I report this as a bug with low priority?