From: Banana Date: Tue, 12 Sep 2023 10:32:30 +0000 (+0200) Subject: fixed URL handling in search and add X-Git-Tag: 2.8.2_20230914~3 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=f9c5d9347d13b54c0f323041c1c9bf57b0758cb1;p=insipid.git fixed URL handling in search and add --- 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');