1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

wrong variable checked

This commit is contained in:
e107steved 2007-08-08 19:40:29 +00:00
parent 8c320ad1de
commit cd547f4778
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,6 @@ if ($parm && $parm != 'external' && strpos($parm, ' ') === FALSE)
}
else
{
if (strtolower(substr($parm,0,11)) == 'javascript:') return '';
if (strtolower(substr($code_text,0,11)) == 'javascript:') return '';
return "<a class='bbcode' href='".$tp -> toAttribute($code_text)."'".$external.">".$code_text."</a>";
}

View File

@ -11,6 +11,6 @@ if ($parm && $parm != 'external' && strpos($parm, ' ') === FALSE)
}
else
{
if (strtolower(substr($parm,0,11)) == 'javascript:') return '';
if (strtolower(substr($code_text,0,11)) == 'javascript:') return '';
return "<a href='".$tp -> toAttribute($code_text)."'".$external.">".$code_text."</a>";
}