From: <de...@de...> - 2011-03-14 17:27:19
|
Author: DipuDeshmukh Date: 2011-03-14 12:27:12 -0500 (Mon, 14 Mar 2011) New Revision: 20723 Trac url: http://develop.twiki.org/trac/changeset/20723 Modified: twiki/trunk/RedirectPlugin/lib/TWiki/Plugins/RedirectPlugin.pm Log: Item6664: Filtered out any newline characters embedded in the redirection URL Modified: twiki/trunk/RedirectPlugin/lib/TWiki/Plugins/RedirectPlugin.pm =================================================================== --- twiki/trunk/RedirectPlugin/lib/TWiki/Plugins/RedirectPlugin.pm 2011-03-14 12:28:16 UTC (rev 20722) +++ twiki/trunk/RedirectPlugin/lib/TWiki/Plugins/RedirectPlugin.pm 2011-03-14 17:27:12 UTC (rev 20723) @@ -24,7 +24,7 @@ use strict; $VERSION = '$Rev$'; -$RELEASE = '2010-07-25'; +$RELEASE = '2011-03-14'; $pluginName = 'RedirectPlugin'; # ========================= @@ -91,7 +91,8 @@ return '' if $noredirect eq 'on'; $dest = TWiki::Func::expandCommonVariables( $dest, $topic, $web ); - + $dest =~ s/\n//g; + # redirect to URL if ( $dest =~ m/^http/ ) { |