summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-12-23 06:45:07 +0100
committerlpsolit%gmail.com <>2005-12-23 06:45:07 +0100
commitc8242c1e91984645c86b38f0794675406aecc4f6 (patch)
treefaf693431fd0fbd1a5b4cd964eb32d7a4eb27dfe /Bugzilla
parent955e61553118fe998670f091de8d3af5c1a91f4b (diff)
downloadbugzilla-c8242c1e91984645c86b38f0794675406aecc4f6.tar.gz
bugzilla-c8242c1e91984645c86b38f0794675406aecc4f6.tar.xz
Backing out bug 238780 (Edit versions should reject newline characters) - This patch prevents you to edit or delete existing versions having control characters.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Util.pm12
1 files changed, 1 insertions, 11 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index 31a1052e4..21885bbdc 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -42,7 +42,7 @@ use base qw(Exporter);
format_time format_time_decimal validate_date
file_mod_time is_7bit_clean
bz_crypt generate_random_password
- validate_email_syntax clean_text);
+ validate_email_syntax);
use Bugzilla::Config;
use Bugzilla::Constants;
@@ -390,12 +390,6 @@ sub is_7bit_clean {
return $_[0] !~ /[^\x20-\x7E\x0A\x0D]/;
}
-sub clean_text {
- my ($dtext) = shift;
- $dtext =~ s/[\x00-\x1F\x7F]/ /g; # change control characters to spaces
- return $dtext;
-}
-
1;
__END__
@@ -645,10 +639,6 @@ into the string.
Returns true is the string contains only 7-bit characters (ASCII 32 through 126,
ASCII 10 (LineFeed) and ASCII 13 (Carrage Return).
-=item C<clean_text($str)>
-Returns the parameter "cleaned" by exchanging non-printable characters with spaces.
-Specifically characters (ASCII 0 through 31) and (ASCII 127) will become ASCII 32 (Space).
-
=back
=head2 Formatting Time