]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Suppress warning relating to new constant.
authorGervase Markham <gerv@gerv.net>
Thu, 8 Dec 2011 14:06:42 +0000 (14:06 +0000)
committerGervase Markham <gerv@mozilla.org>
Thu, 8 Dec 2011 14:06:42 +0000 (14:06 +0000)
https://bugzilla.mozilla.org/show_bug.cgi?id=705078

Bugzilla/Attachment.pm

index 53a3e914776ceeabd29493d855579e1c796a65ec..5c56d6e98ddd0c9290daf88169edfef20405aaee 100644 (file)
@@ -584,7 +584,7 @@ sub _check_filename {
     # Truncate the filename to MAX_ATTACH_FILENAME_LENGTH characters, counting 
     # from the end of the string to make sure we keep the filename extension.
     $filename = substr($filename, 
-                       -MAX_ATTACH_FILENAME_LENGTH, 
+                       -&MAX_ATTACH_FILENAME_LENGTH, 
                        MAX_ATTACH_FILENAME_LENGTH);
     trick_taint($filename);