Commit 378bb9de authored by Jörn Zaefferer's avatar Jörn Zaefferer

Fixed eval code (Thanks Fil)

parent 8ec860d6
......@@ -7,7 +7,7 @@ if($wait) {
$xml = $_REQUEST['xml'];
if($xml) {
header("Content-type: text/xml");
eval("\$result = $xml;");
$result = ($xml == "5-2") ? "3" : "?";
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
die();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment