summaryrefslogtreecommitdiffstats
path: root/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/find.cgi2
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,