#23375 [NEW]: Line feeds in Quickform-Checkbox-getFrozenHtml
| From: | ths at 4bconsult dot de | Date: | Sun, 27 Apr 2003 20:12:04 +0000 |
| Subject: | #23375 [NEW]: Line feeds in Quickform-Checkbox-getFrozenHtml | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15617@lists.php.net to get a copy of this message | ||
From: ths at 4bconsult dot de
Operating system: WIN
PHP version: 4.3.0
PHP Bug Type: PEAR related
Bug description: Line feeds in Quickform-Checkbox-getFrozenHtml
I use the frozen HTML to create ascii formated confirmation emails with the
form data submited by the user. This works fine except unexpected line
feeds in the checkbox element (the radio element comes without these line
feeds).
The following patch remove these line feeds.
Index: checkbox.php
===================================================================
RCS file: /repository/pear/HTML_QuickForm/QuickForm/checkbox.php,v
retrieving revision 1.11
diff -u -r1.11 checkbox.php
--- checkbox.php 13 Apr 2003 19:24:55 -0000 1.11
+++ checkbox.php 27 Apr 2003 19:56:57 -0000
@@ -135,10 +135,10 @@
function getFrozenHtml()
{
if ($this->getChecked()) {
- $html = "<tt>[x]</tt>\n";
+ $html = '<tt>[x]</tt>';
$html .= '<input type="hidden"
name="'.$this->getName().'"
value="1" />';
} else {
- $html = "<tt>[ ]</tt>\n";
+ $html = '<tt>[ ]</tt>';
}
return $html;
} //end func getFrozenHtml
--
Edit bug report at http://bugs.php.net/?id=23375&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23375&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23375&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23375&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23375&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23375&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23375&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23375&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23375&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23375&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23375&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23375&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23375&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23375&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23375&r=gnused