Disable +- operators in procedure call

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@560 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-03-03 11:26:04 +00:00
parent f1068f53fe
commit 17fc1bf7ef

View file

@ -26,7 +26,7 @@ function input($name, $field, $value) {
if (preg_match('~char|date|time~', $field["type"])) {
$options = (preg_match('~char~', $field["type"]) ? array("", "md5", "sha1", "password", "uuid") : array("", "now"));
}
if (!isset($_GET["clone"]) && preg_match('~int|float|double|decimal~', $field["type"])) {
if (!isset($_GET["clone"]) && !isset($_GET["call"]) && preg_match('~int|float|double|decimal~', $field["type"])) {
$options = array("", "+", "-");
}
}