mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 16:48:18 -05:00
Fixed eval code (Thanks Fil)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user