Jump to content

Recommended Posts

why do you need to escape  everything, there's your most likely problem  :P;)

 

what do yea mean escape everything? the only change i made to the script was the / which everywhere i looked said you need but obv that didnt work

i have the code like this now and still get errors

 

function strip_clean($strip_clean) {
$search="alert();";
$search.="document.title();";
$search.="prompt();";
$search.="confirm();";
$replace="";
return preg_replace($search,$replace,$strip_clean);
}

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /home/marksie/blconline/mileagedemo/inc/DbConnector.php on line 215

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /home/marksie/blconline/mileagedemo/inc/DbConnector.php on line 215

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /home/marksie/blconline/mileagedemo/inc/DbConnector.php on line 215

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /home/marksie/blconline/mileagedemo/inc/DbConnector.php on line 215

 

below are lines  209 to 216

 

function strip_clean($strip_clean) {
$search="alert();";
$search.="document.title();";
$search.="prompt();";
$search.="confirm();";
$replace="";
return preg_replace($search,$replace,$strip_clean);
}

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.