diff options
author | lpsolit%gmail.com <> | 2005-12-08 17:55:41 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-12-08 17:55:41 +0100 |
commit | fa5ed8f8630277c2560df1bf9fefdab30dec022e (patch) | |
tree | 8ec1013aa7ed52d3c8c1d0d880c4b316bd877e8b /editversions.cgi | |
parent | 73997d5064384dd64c82a714947644f4ffcc4366 (diff) | |
download | bugzilla-fa5ed8f8630277c2560df1bf9fefdab30dec022e.tar.gz bugzilla-fa5ed8f8630277c2560df1bf9fefdab30dec022e.tar.xz |
Bug 238780: editversions.cgi should reject newline characters (and convert them to whitespaces) - Patch by Paul <pdemarco@ppg.com> r=LpSolit a=justdave
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-x | editversions.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editversions.cgi b/editversions.cgi index 396a6e605..eae1001ca 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -128,6 +128,9 @@ if ($action eq 'new') { # Cleanups and valididy checks $version_name || ThrowUserError('version_blank_name'); + # Remove unprintable characters + $version_name = clean_text($version_name); + my $version = new Bugzilla::Version($product->id, $version_name); if ($version) { ThrowUserError('version_already_exists', @@ -240,6 +243,10 @@ if ($action eq 'edit') { if ($action eq 'update') { $version_name || ThrowUserError('version_not_specified'); + + # Remove unprintable characters + $version_name = clean_text($version_name); + my $version_old_name = trim($cgi->param('versionold') || ''); my $version_old = Bugzilla::Version::check_version($product, |