" is getting replaced by \ in PHP

hitmann

New Member
The URL I am using is: \[code\]http://example.org/codecabana/runCode.php?code=%23include%20%3Cstdio.h%3E%0Aint%20main(void)%20%7B%0Aprintf(%22Code%20Cabana!%22)%3B%0Areturn%200%3B%0A%7D&lang=C\[/code\]
The problem is, it seems to be replacing \[code\]"\[/code\] with \[code\]\\[/code\].My PHP script is:\[code\]<?phpinclude "sl.php";$code = $_GET['code'];$lang = $_GET['lang'];try {$app = new slApp( $plaintext );$result = $app -> run( $code , $lang ); //Pass the result of the request, as an array, to $resultecho $result['output'],"{BREAK}";echo $result['compiler_errors'];echo $code;}catch( Exception $e ) { echo $e -> getMessage(), "{BREAK}", "An error has occurred! CODE: " , $code , "Lang: " , $lang;}?>\[/code\]
 
Top