From b3ec1d42a71a82a867a905adc1c8598d6b81f97c Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 5 Aug 2023 21:31:33 +0300 Subject: [PATCH] fix empty URI processing --- library/helper.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/helper.php b/library/helper.php index 19bcc0f..8de2c7e 100644 --- a/library/helper.php +++ b/library/helper.php @@ -117,6 +117,12 @@ class Helper { } } + // URI correction + if (empty($link->page->uri)) { + + $link->page->uri = '/'; + } + // Add host page if not exists if ($hostPage = $db->findHostPageByCRC32URI($hostId, crc32($link->page->uri))) {