From 449b0bf117ff54615937f6c224748b18b8b6bd9f Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 17 Oct 2023 20:53:34 +0300 Subject: [PATCH] Fix to escape specific param, not the whole string #107 --- index.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.cgi b/index.cgi index 7ed56b0b..20f66c1f 100755 --- a/index.cgi +++ b/index.cgi @@ -62,7 +62,7 @@ elsif ($gconfig{"notabs_${base_remote_user}"} == 2 || if ($pos % $cols == 0) { print "\n"; } print "\n"; local $idx = $m->{'index_link'}; - my $alink = &urlize("$gconfig{'webprefix'}/$m->{'dir'}/$idx"); + my $alink = "$gconfig{'webprefix'}/@{[&urlize($m->{'dir'})]}/$idx"; print "
", "{'dir'}/images/icon.gif border=0 ", "width=48 height=48>
\n"; @@ -148,7 +148,7 @@ else { if ($pos % $cols == 0) { print "\n"; } print "\n"; - my $mlink = &urlize("$gconfig{'webprefix'}/$m->{'dir'}/"); + my $mlink = "$gconfig{'webprefix'}/@{[&urlize($m->{'dir'})]}/"; print "
", "{'dir'}/images/icon.gif alt=\"\" border=0>", "
\n";