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
# 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');