Fixed eval code (Thanks Fil)

This commit is contained in:
Jörn Zaefferer 2007-01-10 15:04:54 +00:00
parent 8ec860d637
commit 378bb9ded8

View file

@ -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();
}