Fixed eval code (Thanks Fil)
This commit is contained in:
parent
8ec860d637
commit
378bb9ded8
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue