diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-01-01 16:23:49 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-01-01 16:23:49 +0800 |
| commit | 2609fa6fe825c1c56e7c2fa11c3a28e93be8ad4a (patch) | |
| tree | bb7cde0413ac498cd14d41af423b7f2d310c5827 /cgi-bin | |
| parent | 646faee949b4e60f96eab442945f0bba53dcf995 (diff) | |
| download | www-2609fa6fe825c1c56e7c2fa11c3a28e93be8ad4a.tar.gz | |
Fix path to remove .. from the link.
Diffstat (limited to 'cgi-bin')
| -rw-r--r-- | cgi-bin/find.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi-bin/find.cgi b/cgi-bin/find.cgi index f0d2b3c..fc1d4af 100644 --- a/cgi-bin/find.cgi +++ b/cgi-bin/find.cgi @@ -52,6 +52,8 @@ foreach my $path (@files) { my ($title) = $html =~ m|<title>(.*?)</title>|is; my $safe_title = escape_html($title); + $path =~ s|^\.\./||; + push @results, { path => $path, title => $safe_title, |
