Closed Bug 114817 Opened 23 years ago Closed 23 years ago

Using single quote chars in product names breaks bugzilla.

Categories

(Bugzilla :: Administration, task)

2.14
x86
Linux
task
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 42810

People

(Reporter: bugmaster, Assigned: justdave)

Details

Attachments

(1 file)

It appears that Bugzilla doesn't escape the product names when building the
data/versioncache file (function GenerateVersionTable() in globals.pl). Fix
attached as unified diff for version 2.14. There may be other things in
globals.pl that need to be wrapped in PerlQuote() calls, too, but this was the
first one that hit me.

--ryan. (bugmaster@icculus.org)

Download url (if this textarea munges the diff):
https://bugzilla.icculus.org/patches/bugzilla-2.14-quotes-in-product-name-RYAN-1.diff


--- /root/bugzilla-2.14/globals.pl	Wed Aug 29 15:52:13 2001
+++ globals.pl	Wed Dec 12 03:21:27 2001
@@ -409,7 +409,7 @@
         $result = "";
         foreach my $k (sort { uc($a) cmp uc($b)} eval("keys $name")) {
             $result .= GenerateCode("\$" . substr($name, 1) .
-                                    "{'" . $k . "'}");
+                                    "{" . PerlQuote($k) . "}");
         }
         return $result;
     } else {
(or, I could just attach it the right way. Whoops. :)  )

--ryan. (bugmaster@icculus.org)
already fixed.

*** This bug has been marked as a duplicate of 42810 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: