summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-08 09:29:31 +0200
committermkanat%bugzilla.org <>2008-08-08 09:29:31 +0200
commit02af2b2bda87628a04a430c2105ea8b607bcac7f (patch)
tree0671eb720c86c126ead74f1b00229be13d67b04f /buglist.cgi
parent0547231eae6ebcbb033b6c1af706b537956e0624 (diff)
downloadbugzilla-02af2b2bda87628a04a430c2105ea8b607bcac7f.tar.gz
bugzilla-02af2b2bda87628a04a430c2105ea8b607bcac7f.tar.xz
Bug 432931: [Oracle] Saved Searches that search multi-byte characters return empty results
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=xiaoou, a=mkanat
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index a498d09f1..d0f350e0a 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -253,6 +253,12 @@ sub LookupNamedQuery {
WHERE userid = ? AND name = ?
$extra",
undef, @args);
+
+ # Some DBs (read: Oracle) incorrectly mark this string as UTF-8
+ # even though it has no UTF-8 characters in it, which prevents
+ # Bugzilla::CGI from later reading it correctly.
+ utf8::downgrade($result) if utf8::is_utf8($result);
+
if (!defined($result)) {
return 0 unless $throw_error;
ThrowUserError("missing_query", {'queryname' => $name,