From: pk910 Date: Sun, 27 Nov 2011 03:25:41 +0000 (+0100) Subject: do not replace \n!!! X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=ef1e266ba26e4b0635d5f6f6f15e4aa2de3046e4 do not replace \n!!! --- diff --git a/Bots/CGod.class.php b/Bots/CGod.class.php index efc2bd6..4871694 100644 --- a/Bots/CGod.class.php +++ b/Bots/CGod.class.php @@ -92,7 +92,7 @@ class {$_NAME} extends Bot { $entry['channel'] = $channel; $entry['id'] = rand(1, 999999); $fp = fopen("tmp/debug_".$entry['id'].".c", "w"); - fwrite($fp, "#include \"includes.h\"\n".str_replace(array("\\n"), array("\n"),$exp[1])); + fwrite($fp, "#include \"includes.h\"\n".$exp[1]); fclose($fp); $err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1"); if($err) {