diff options
Diffstat (limited to 'doeditparams.cgi')
-rwxr-xr-x | doeditparams.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doeditparams.cgi b/doeditparams.cgi index 0ecd4be76..a67175e91 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -51,7 +51,7 @@ foreach my $i (@::param_list) { if (exists $::FORM{"reset-$i"}) { $::FORM{$i} = $::param_default{$i}; } - $::FORM{$i} =~ s/\r\n/\n/g; # Get rid of windows-style line endings. + $::FORM{$i} =~ s/\r\n?/\n/g; # Get rid of windows/mac-style line endings. $::FORM{$i} =~ s/^\n$//; # assume single linefeed is an empty string if ($::FORM{$i} ne Param($i)) { if (defined $::param_checker{$i}) { |