diff --git a/sections/artist/index.php b/sections/artist/index.php index 106eb992..1339ff70 100644 --- a/sections/artist/index.php +++ b/sections/artist/index.php @@ -95,6 +95,7 @@ include (SERVER_ROOT . '/sections/artist/artist.php'); } elseif (!empty($_GET['artistname'])) { + $NameSearch = str_replace('\\', '\\\\', trim($_GET['artistname'])); $DB->query(" SELECT ArtistID, Name diff --git a/sections/inbox/inbox.php b/sections/inbox/inbox.php index e60eb0ca..f1c6aa1a 100644 --- a/sections/inbox/inbox.php +++ b/sections/inbox/inbox.php @@ -1,5 +1,7 @@ select('id') diff --git a/sections/requests/requests.php b/sections/requests/requests.php index 36b8f609..96280400 100644 --- a/sections/requests/requests.php +++ b/sections/requests/requests.php @@ -173,6 +173,7 @@ if (!empty($_GET['search'])) { $SearchString = trim($_GET['search']); + if ($SearchString !== '') { $SearchWords = array('include' => array(), 'exclude' => array()); $Words = explode(' ', $SearchString); diff --git a/sections/torrents/browse.php b/sections/torrents/browse.php index eedddd3f..33ba545e 100644 --- a/sections/torrents/browse.php +++ b/sections/torrents/browse.php @@ -39,6 +39,7 @@ function header_link($SortKey, $DefaultWay = 'desc') { if (!empty($_GET['searchstr']) || !empty($_GET['groupname'])) { if (!empty($_GET['searchstr'])) { $InfoHash = $_GET['searchstr']; + } else { $InfoHash = $_GET['groupname']; } diff --git a/sections/user/search.php b/sections/user/search.php index e31576ac..11f2cbec 100644 --- a/sections/user/search.php +++ b/sections/user/search.php @@ -47,6 +47,7 @@ } } + View::show_header('User search'); ?>