From a2019d62c075a94812c2dea263cd72f1928573c9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 12 Feb 2008 16:16:38 +0000 Subject: [PATCH] HTML escaping --- file/show.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/file/show.cgi b/file/show.cgi index 32be93855..5b08fd308 100755 --- a/file/show.cgi +++ b/file/show.cgi @@ -44,7 +44,7 @@ $temp = &transname(); $p = &unmake_chroot($p); if (!&can_access($p)) { # ACL rules prevent access to file - &error_exit(&text('view_eaccess', $p)); + &error_exit(&text('view_eaccess', &html_escape($p))); } if ($in{'format'}) { @@ -59,7 +59,7 @@ if ($in{'format'}) { elsif ($in{'format'} == 3) { $p =~ s/\.tar$//; } - -d $p || &error_exit($text{'view_edir'}." ".$p); + -d $p || &error_exit($text{'view_edir'}." ".&html_escape($p)); if ($archive == 2 && $archmax > 0) { # Check if directory is too large to archive local $kb = &disk_usage_kb($p); @@ -103,7 +103,7 @@ if ($in{'format'}) { local $out = `cd $qpdir ; ($cmd) 2>&1