]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix bustage for bug 616185: commas are encoded as %2C in Bugzilla 3.x, but not in...
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 30 Jan 2011 12:44:46 +0000 (13:44 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 30 Jan 2011 12:44:46 +0000 (13:44 +0100)
Bugzilla/Install/DB.pm

index 7233c9dc08cff0c0d5dc7474427c27ba985fb6dd..7d97635e84395c3f8981ad45083f85887aaeb4fa 100644 (file)
@@ -3492,6 +3492,8 @@ sub _migrate_user_tags {
            undef, ($user_id, $tag_name));
 
         $query =~ s/^bug_id=//;
+        # Commas in Bugzilla 3.x are encoded as %2C, but not in 2.22.
+        $query =~ s/%2C/,/g
         my @bug_ids = split(/[\s,]+/, $query);
         $sth_bug_tag->execute($_, $tag_id) foreach @bug_ids;