diff options
Diffstat (limited to 'includes/pages/admin_news.php')
-rw-r--r-- | includes/pages/admin_news.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php index af5dffc6..a814bc33 100644 --- a/includes/pages/admin_news.php +++ b/includes/pages/admin_news.php @@ -14,7 +14,7 @@ function admin_news() } $html = '<div class="col-md-12"><h1>' . _('Edit news entry') . '</h1>' . msg(); - if (isset($_REQUEST['id']) && preg_match('/^[0-9]{1,11}$/', $_REQUEST['id'])) { + if (isset($_REQUEST['id']) && preg_match('/^\d{1,11}$/', $_REQUEST['id'])) { $news_id = $_REQUEST['id']; } else { return error('Incomplete call, missing News ID.', true); |