From: Frédéric Buclin Date: Sun, 30 Jan 2011 12:44:46 +0000 (+0100) Subject: Fix bustage for bug 616185: commas are encoded as %2C in Bugzilla 3.x, but not in... X-Git-Tag: bugzilla-4.1.1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cdd0c2749fd3de7bc4c6989d7a5ca8af62435a3;p=thirdparty%2Fbugzilla.git Fix bustage for bug 616185: commas are encoded as %2C in Bugzilla 3.x, but not in 2.22 --- diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 7233c9dc08..7d97635e84 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -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;