Fixed double escaping

This commit is contained in:
Jamie Cameron
2008-02-28 17:42:04 +00:00
parent 5f778a21c8
commit 7267d5bc64

View File

@@ -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'} ] ]);