From 7dda115d73386223d75a00048ae7241c0cfbfd9f Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sat, 28 May 2022 18:02:02 +0200 Subject: [PATCH] Fix isPretty returning wrong value --- src/classes/url.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/url.php b/src/classes/url.php index 368013db..a70b5cf6 100644 --- a/src/classes/url.php +++ b/src/classes/url.php @@ -16,8 +16,9 @@ class URL public function isPretty(): bool { - return !preg_match('/^\/\?.+?=.+?$/', $this->url); + return preg_match('/^\/\?.+?=.+?$/', $this->url); } + public function getPermalink(): string { $htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));