Skip to content
Permalink
Browse files

Item9141: thank goodness for unit tests! Would have missed this other…

…wise

git-svn-id: http://svn.foswiki.org/trunk@7785 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Jun 14, 2010
1 parent df39d99 commit 7a19270a692abffccc44ce8cc0d797c9b4ac2493
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/lib/Foswiki/Macros/URLPARAM.pm
@@ -38,9 +38,9 @@ sub URLPARAM {
}
}
else {
$value = $this->{request}->param($param);
$value = _handleURLPARAMValue(
$this->{request}->param($param),
$newLine, $encode, $default );
$value, $newLine, $encode, $default );
}
}
return $value;
@@ -50,7 +50,7 @@ sub _handleURLPARAMValue {
my ($value, $newLine, $encode, $default) = @_;

if ( defined $value ) {
$value =~ s/\r?\n/$newLine/go if ( defined $newLine );
$value =~ s/\r?\n/$newLine/g if ( defined $newLine );
if ( $encode =~ /^entit(y|ies)$/i ) {
$value = entityEncode($value);
}

0 comments on commit 7a19270

Please sign in to comment.
You can’t perform that action at this time.