From: Gervase Markham Date: Thu, 8 Dec 2011 14:06:42 +0000 (+0000) Subject: Suppress warning relating to new constant. X-Git-Tag: bugzilla-4.3.1~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1e341b527143240bb812a80d9bb8159afea532;p=thirdparty%2Fbugzilla.git Suppress warning relating to new constant. https://bugzilla.mozilla.org/show_bug.cgi?id=705078 --- diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 53a3e91477..5c56d6e98d 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -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);