From 5aa2f823d82a52ec94530a134ca554ddd30f3ecd Mon Sep 17 00:00:00 2001 From: Thasan Date: Tue, 5 Nov 2013 22:43:46 +0200 Subject: [PATCH] Fixing rating= search --- ext/rating/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/rating/main.php b/ext/rating/main.php index e53141c8..77ecac2a 100644 --- a/ext/rating/main.php +++ b/ext/rating/main.php @@ -104,7 +104,7 @@ class Ratings extends Extension { $set = Ratings::privs_to_sql(Ratings::get_user_privs($user)); $event->add_querylet(new Querylet("rating IN ($set)")); } - if(preg_match("/^rating=(?:([sqeu]+)|(safe|questionable|explicit|unknown))$", strtolower($event->term), $matches)) { + if(preg_match("/^rating=(?:([sqeu]+)|(safe|questionable|explicit|unknown))$/D", strtolower($event->term), $matches)) { $ratings = $matches[1] ? $matches[1] : array($matches[2][0]); $ratings = array_intersect($ratings, str_split(Ratings::get_user_privs($user))); $set = "'" . join("', '", $ratings) . "'";