1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:25:57 +00:00

do not allow commas in tags

This commit is contained in:
Andrew Dolgov
2015-07-13 01:22:44 +03:00
parent ac4c1383ae
commit 0e4da73f06

View File

@@ -1483,7 +1483,7 @@
$tag = mb_strtolower($tag, 'utf-8'); $tag = mb_strtolower($tag, 'utf-8');
$tag = preg_replace('/[\'\"\+\>\<]/', "", $tag); $tag = preg_replace('/[,\'\"\+\>\<]/', "", $tag);
if (DB_TYPE == "mysql") { if (DB_TYPE == "mysql") {
$tag = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $tag); $tag = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $tag);