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

fix tag quote issues

This commit is contained in:
Andrew Dolgov
2007-05-19 14:47:51 +01:00
parent ce885e215e
commit 14b6c54b03
3 changed files with 26 additions and 11 deletions

View File

@@ -202,7 +202,9 @@
}
if ($subop == "setArticleTags") {
$id = db_escape_string($_GET["id"]);
$tags_str = db_escape_string($_GET["tags_str"]);
$tags = array_unique(trim_array(split(",", $tags_str)));
@@ -220,7 +222,7 @@
post_int_id = $int_id AND owner_uid = '".$_SESSION["uid"]."'");
foreach ($tags as $tag) {
$tag = trim($tag);
$tag = sanitize_tag($tag);
if (!tag_is_valid($tag)) {
continue;
@@ -229,6 +231,8 @@
if (preg_match("/^[0-9]*$/", $tag)) {
continue;
}
// print "<!-- $tag -->";
if ($tag != '') {
db_query($link, "INSERT INTO ttrss_tags