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) { ...@@ -7,7 +7,7 @@ if($wait) {
$xml = $_REQUEST['xml']; $xml = $_REQUEST['xml'];
if($xml) { if($xml) {
header("Content-type: text/xml"); header("Content-type: text/xml");
eval("\$result = $xml;"); $result = ($xml == "5-2") ? "3" : "?";
echo "<math><calculation>$xml</calculation><result>$result</result></math>"; echo "<math><calculation>$xml</calculation><result>$result</result></math>";
die(); 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