From ef1e266ba26e4b0635d5f6f6f15e4aa2de3046e4 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 27 Nov 2011 04:25:41 +0100 Subject: [PATCH] do not replace \n!!! --- Bots/CGod.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1