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:
parent
8c320ad1de
commit
cd547f4778
@ -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>";
|
||||
}
|
||||
|
@ -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>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user