Path needs to be escaped in footer

This commit is contained in:
Jamie Cameron
2017-02-19 17:30:10 -08:00
parent 54fc94e32b
commit dbd99caaee

View File

@@ -73,7 +73,7 @@ sub get_paths {
$base = '/';
}
}
$path = $in{'path'} ? $in{'path'} : '';
$path = $in{'path'} || '';
$cwd = &simplify_path($base.$path);
# Work out max upload size
@@ -133,7 +133,7 @@ sub print_errors {
print("<li>$error</li>");
}
print "<ul>";
&ui_print_footer("index.cgi?path=$path", $text{'previous_page'});
&ui_print_footer("index.cgi?path=".&urlize($path), $text{'previous_page'});
}
sub print_interface {