diff --git a/classes/class_sphinxql.php b/classes/class_sphinxql.php index 5fb69666..30fbdca5 100644 --- a/classes/class_sphinxql.php +++ b/classes/class_sphinxql.php @@ -118,6 +118,7 @@ public function escape_string($String) { '<'=>'\\\\<', '!'=>'\\\\!', '"'=>'\\\\"', + '/'=>'\\\\/', '\\'=>'\\\\\\\\') ); } diff --git a/ocelot-0.5.tar.bz2 b/ocelot-0.5.tar.bz2 new file mode 100644 index 00000000..602afb20 Binary files /dev/null and b/ocelot-0.5.tar.bz2 differ diff --git a/sections/torrents/browse2.php b/sections/torrents/browse2.php index a60b84a6..e5ad0b30 100644 --- a/sections/torrents/browse2.php +++ b/sections/torrents/browse2.php @@ -128,7 +128,7 @@ function header_link($SortKey,$DefaultWay="desc") { // Collect all entered search terms to find out whether to enable the NOT operator foreach(array('artistname','groupname', 'recordlabel', 'cataloguenumber', 'remastertitle', 'remasteryear', 'remasterrecordlabel', 'remastercataloguenumber', - 'format', 'media', 'taglist') as $Search) { + 'encoding', 'format', 'media', 'taglist') as $Search) { if(!empty($_GET[$Search])) { $SearchString = trim($_GET[$Search]); if($SearchString != '') { @@ -291,9 +291,6 @@ function header_link($SortKey,$DefaultWay="desc") { } } } -if(!empty($_GET['encoding'])) { - $Queries[]='@encoding "'.$SS->EscapeString(strtr($_GET['encoding'], '.', ' ')).'"'; // Conversion from period to space is necessary due to a sphinx limitation/bug -} if(isset($_GET['haslog']) && $_GET['haslog']!=='') { if($_GET['haslog'] == 100) {