From 740026a9de6cba73c4e77aba78950d0a791b6b62 Mon Sep 17 00:00:00 2001 From: Bot Date: Sat, 21 Jan 2017 19:47:44 +0100 Subject: Replaced [0-9] with \d --- includes/pages/admin_questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/admin_questions.php') diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index aca9b570..4c84e4f8 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -98,7 +98,7 @@ function admin_questions() } else { switch ($_REQUEST['action']) { case 'answer': - if (isset($_REQUEST['id']) && preg_match('/^[0-9]{1,11}$/', $_REQUEST['id'])) { + if (isset($_REQUEST['id']) && preg_match('/^\d{1,11}$/', $_REQUEST['id'])) { $question_id = $_REQUEST['id']; } else { return error('Incomplete call, missing Question ID.', true); @@ -139,7 +139,7 @@ function admin_questions() } break; case 'delete': - if (isset($_REQUEST['id']) && preg_match('/^[0-9]{1,11}$/', $_REQUEST['id'])) { + if (isset($_REQUEST['id']) && preg_match('/^\d{1,11}$/', $_REQUEST['id'])) { $question_id = $_REQUEST['id']; } else { return error('Incomplete call, missing Question ID.', true); -- cgit v1.2.3-54-g00ecf