Escape uploaded path

This commit is contained in:
Jamie Cameron
2017-12-25 23:09:44 -08:00
parent 645a2d3067
commit ce5d99fe6b

View File

@@ -70,7 +70,8 @@ for($i=0; defined($in{"upload$i"}); $i++) {
else {
$path = $in{'dir'};
}
print &text('upload_saving', "<tt>$path</tt>"),"<br>\n";
print &text('upload_saving',
"<tt>".&html_escape($path)."</tt>"),"<br>\n";
if (!&open_tempfile(FILE, ">$path", 1)) {
&error(&text('upload_eopen', "<tt>$path</tt>", $!));
}