diff options
author | lpsolit%gmail.com <> | 2005-12-30 07:55:59 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-12-30 07:55:59 +0100 |
commit | ede2d35c22621ca7245562bed1152ebcfaca954b (patch) | |
tree | 8cea3914baa68569db2d91e1bce5011ca4a8f11e /editversions.cgi | |
parent | 6de0297718b7170f40c30bf536bbb3d8c32e2315 (diff) | |
download | bugzilla-ede2d35c22621ca7245562bed1152ebcfaca954b.tar.gz bugzilla-ede2d35c22621ca7245562bed1152ebcfaca954b.tar.xz |
Bug 238780: editversions.cgi should reject newline characters - Patch by Paul <pdemarco@zoominternet.net> 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 43816e6aa..be2c8a3c6 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -130,6 +130,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', @@ -242,6 +245,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, |