php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23375 Line feeds in Quickform-Checkbox-getFrozenHtml
Submitted: 2003-04-27 15:12 UTC Modified: 2003-04-29 06:14 UTC
From: ths at 4bconsult dot de Assigned: mansion (profile)
Status: Closed Package: PEAR related
PHP Version: 4.3.0 OS: WIN
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ths at 4bconsult dot de
New email:
PHP Version: OS:

 

 [2003-04-27 15:12 UTC] ths at 4bconsult dot de
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 04:06 UTC] arnaud@php.net
Assigining to maintainer
 [2003-04-29 06:14 UTC] mansion@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 00:01:31 2024 UTC