Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Improved parameter appending.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruner committed Dec 7, 2017
1 parent 1828272 commit 26707ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/Output/HTML/LayoutTemplate.pm
Expand Up @@ -212,7 +212,7 @@ sub Output {
my $Target = $2;
my $End = $3;
my $RealEnd = $4;
if ( lc $Target =~ /^(http:|https:|#|ftp:)/ ||
if ( lc($Target) =~ /^(http:|https:|#|ftp:)/ ||
$Target !~ /\.(pl|php|cgi|fcg|fcgi|fpl)(\?|$)/ ||
$Target =~ /(\?|&|;)\Q$Self->{SessionName}\E=/) {
$AHref.$Target.$End.$RealEnd;
Expand All @@ -230,7 +230,7 @@ sub Output {
my $AHref = $1;
my $Target = $2;
my $End = $3;
if (lc $Target =~ m{^http s? :}smx || !$Self->{SessionID} ||
if (lc($Target) =~ m{^http s? :}smx || !$Self->{SessionID} ||
$Target !~ /\.(pl|php|cgi|fcg|fcgi|fpl)(\?|$)/ ||
$Target =~ /\Q$Self->{SessionName}\E=/) {
$AHref.$Target.$End;
Expand Down

0 comments on commit 26707ea

Please sign in to comment.