mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Escape uploaded path
This commit is contained in:
@@ -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>", $!));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user