mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:35:57 +00:00
fix article tags/labels not assigning properly on mysql because of the 4byte unicode workaround
This commit is contained in:
@@ -1483,9 +1483,9 @@
|
||||
|
||||
$tag = preg_replace('/[\'\"\+\>\<]/', "", $tag);
|
||||
|
||||
// $tag = str_replace('"', "", $tag);
|
||||
// $tag = str_replace("+", " ", $tag);
|
||||
$tag = str_replace("technorati tag: ", "", $tag);
|
||||
if (DB_TYPE == "mysql") {
|
||||
$tag = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $tag);
|
||||
}
|
||||
|
||||
return $tag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user