diff --git a/includes/css.php b/includes/css.php
index 4419bac..0745b4e 100644
a
|
b
|
|
25 | 25 | $css_class[] = recstatus_class($item); |
26 | 26 | // Category type? |
27 | 27 | if ($item->category_type && !preg_match('/unknown/i', $item->category_type)) |
28 | | $css_class[] = 'type_'.preg_replace("/[^a-zA-Z0-9\-_]+/", '_', $item->category_type); |
| 28 | $css_class[] = 'type_'.preg_replace("/[^a-zA-Z0-9\-_]+/u", '_', $item->category_type); |
29 | 29 | // Category cache |
30 | 30 | $category = strtolower($item->category); // user lowercase to avoid a little overhead later |
31 | 31 | static $cache = array(); |
… |
… |
|
42 | 42 | } |
43 | 43 | if (!$details[1]) |
44 | 44 | continue; |
45 | | if (preg_match('/'.$details[1].'/', $category)) { |
| 45 | if (preg_match('/'.$details[1].'/u', $category)) { |
46 | 46 | $css_class[] = $cache[$category] = 'cat_'.$cat; |
47 | 47 | break; |
48 | 48 | } |
diff --git a/modules/tv/handler.php b/modules/tv/handler.php
index 66285b6..c048c6c 100644
a
|
b
|
|
93 | 93 | trigger_error("Failed to open tv category file: $path", FATAL); |
94 | 94 | // Parse the file |
95 | 95 | global $Categories; |
96 | | foreach (preg_split('/\n(?=\S)/', $file) as $group) { |
97 | | list($key, $trans, $regex) = preg_split('/\s*\n\s*/', $group); |
| 96 | foreach (preg_split('/\n(?=\S)/u', $file) as $group) { |
| 97 | list($key, $trans, $regex) = preg_split('/\s*\n\s*/u', $group); |
98 | 98 | // Cleanup |
99 | | if (preg_match('/^["\']/', $key)) |
100 | | $key = preg_replace('/^(["\'])(.+)\\1$/', '$2', $key); |
| 99 | if (preg_match('/^["\']/u', $key)) |
| 100 | $key = preg_replace('/^(["\'])(.+)\\1$/u', '$2', $key); |
101 | 101 | // Store |
102 | 102 | $Categories[$key] = array($trans, $regex); |
103 | 103 | } |