From f9c5d9347d13b54c0f323041c1c9bf57b0758cb1 Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 12 Sep 2023 12:32:30 +0200 Subject: [PATCH] fixed URL handling in search and add --- ChangeLog | 1 + webroot/view/home.inc.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 66c2ed2..91ff121 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ version 2.x - Dragon Chapel () + Added LOGFILE and QUERY_DEBUG const to config.php. See update.txt for more details + * Fixed URL handling at creation + Improved DB queries. + Add top 5 tag or category relation stats in the tag and category overview + Update license to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/webroot/view/home.inc.php b/webroot/view/home.inc.php index c91c8c4..18f9e7a 100644 --- a/webroot/view/home.inc.php +++ b/webroot/view/home.inc.php @@ -54,15 +54,13 @@ if((isset($_POST['password']) && !empty($_POST['password'])) || (isset($_POST['u # search or new one. if(isset($_POST['data']) && !empty($_POST['data']) && isset($_POST['submitsearch']) && $honeypotCheck === false) { $searchValue = trim($_POST['data']['searchfield']); - $searchValue = strtolower($searchValue); $isUrl = Summoner::validate($searchValue,'url'); if($isUrl === true) { # search for URL - $searchValue = trim($searchValue, "/"); $searchResult = $Management->searchForLinkByURL($searchValue); } elseif(Summoner::validate($searchValue,'text')) { - $searchResult = $Management->searchForLinkBySearchData($searchValue); + $searchResult = $Management->searchForLinkBySearchData(strtolower($searchValue)); } else { $submitFeedback['message'] = $T->t('home.input.invalid'); -- 2.39.5