ci sono riuscito
controllo tag [url] - [/url]
<?
$message = " The first expression (expr1) is evaluated (executed) once unconditionally at the beginning of the loop.
In the beginning of each iteration, expr2 [url]javascript:alert(cols)[/url] is evaluated. If it evaluates to TRUE, the loop continues and the nested statement(s) are executed. If it evaluates to FALSE, the execution of the loop ends.
[url]http://www.google.it[/url]
At the end of each iteration, expr3 is evaluated (executed). [url]javascript:alert[/url] funzione get ";
$urlaperto = explode("[url]", $message);
$conteggio = count($urlaperto);
for ($i = 1; $i <= $conteggio; $i++) {
// echo $i;
if (eregi('[/url]', $urlaperto[$i])) {
//seconda funzione
$tagurl = explode("[/url]", $urlaperto[$i]);
if (eregi('javascript:alert', $tagurl[0])) {
//è stata trovata
echo " contiene caratteri non consentiti! $tagurl[0]";
}
}
}
?>