mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fixed double escaping
This commit is contained in:
@@ -14,7 +14,7 @@ $access{'file'} || &error($text{'text_ecannot'});
|
||||
|
||||
open(FILE, &make_chroot($file));
|
||||
while(<FILE>) {
|
||||
push(@lines, &html_escape($_));
|
||||
push(@lines, $_);
|
||||
}
|
||||
close(FILE);
|
||||
|
||||
@@ -26,7 +26,8 @@ print &ui_form_start("save_text.cgi", "form-data");
|
||||
print &ui_table_start(undef, undef, 2);
|
||||
print &ui_hidden("index", $in{'index'});
|
||||
print &ui_hidden("view", $in{'view'});
|
||||
print &ui_table_row(undef, &ui_textarea("text", join("", @lines), 20, 80), 2);
|
||||
print &ui_table_row(undef, &ui_textarea("text", join("", @lines), 20, 80,
|
||||
undef, 0, "style='width:100%'"), 2);
|
||||
print &ui_table_end();
|
||||
print &ui_form_end($access{'ro'} ? [ ] : [ [ undef, $text{'save'} ] ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user