Browse Source

Tag namespace support for user torrent searches

spaghetti 7 years ago
parent
commit
0d4cc1a87d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sections/torrents/user.php

+ 2
- 2
sections/torrents/user.php View File

118
       if (empty($Tag)) {
118
       if (empty($Tag)) {
119
         continue;
119
         continue;
120
       }
120
       }
121
-      $TagList[] = "CONCAT(' ', tg.TagList, ' ') NOT LIKE '% ".db_string($Tag)." %'";
121
+      $TagList[] = "tg.TagList NOT RLIKE '[[:<:]]".db_string($Tag)."(:[^ ]+)?[[:>:]]'";
122
     } else {
122
     } else {
123
-      $TagList[] = "CONCAT(' ', tg.TagList, ' ') LIKE '% ".db_string($Tag)." %'";
123
+      $TagList[] = "tg.TagList RLIKE '[[:<:]]".db_string($Tag)."(:[^ ]+)?[[:>:]]'";
124
     }
124
     }
125
   }
125
   }
126
   if (!empty($TagList)) {
126
   if (!empty($TagList)) {

Loading…
Cancel
Save