From eea2bab44be7ba1fa8e3f8ccadefc07192aa0c92 Mon Sep 17 00:00:00 2001 From: tehron Date: Sun, 20 Oct 2019 22:41:40 +0200 Subject: [PATCH] allow empty phrase in slug (e.g. when title contains only non ascii characters) --- html/forum/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/forum/index.php b/html/forum/index.php index b4dc837..aea75ed 100644 --- a/html/forum/index.php +++ b/html/forum/index.php @@ -18,7 +18,7 @@ $breadcrumb = ''; if (isset($_GET['slug'])) { // Get id from slug - preg_match('/\/([0-9]+)[a-z0-9\s-]+$/s', $_GET['slug'], $matches); + preg_match('/\/([0-9]+)[a-z0-9\s-]*$/s', $_GET['slug'], $matches); if ($matches) { $id = $matches[1]; @@ -223,4 +223,4 @@ \ No newline at end of file +?>