From 42de51b18d302d07e109c24dfb0ae237e6d38643 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 22 Sep 2010 16:29:25 +0200 Subject: Work around WebKit bug: newlines at the end of input values are removed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In WebKit, newlines at the end of input field’s value parameters are removed. This breaks $PRE, so we protect those new lines with a dot and later remove the dot. --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/html.php b/inc/html.php index 0bf5842ef..add559971 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1177,7 +1177,7 @@ function html_edit(){ $form->addHidden('id', $ID); $form->addHidden('rev', $REV); $form->addHidden('date', $DATE); - $form->addHidden('prefix', $PRE); + $form->addHidden('prefix', $PRE . '.'); $form->addHidden('suffix', $SUF); $form->addHidden('changecheck', $check); -- cgit v1.2.3