find in text2schild.php:
under it add:
PHP Code:
function remove_magic_quotes(&$x,$keyname="") {
if (is_array($x)) {
while (list($key,$value) = each($x)) {
if ($value) remove_magic_quotes(&$x[$key],$key);
}
} else if (ini_get('magic_quotes_sybase')) {
$x = preg_replace("/''/", "'", $x);
} else if (ini_get('magic_quotes_runtime')) {
$x = preg_replace("/\\\"/", '"', $x);
} else if (ini_get('magic_quotes_gpc')) {
$x = stripslashes($x);
}
}
then find:
PHP Code:
$text = rawurldecode($_GET["text"]);
under it add:
PHP Code:
remove_magic_quotes(&$text);