Skip to content

Commit

Permalink
- Bug #14443: form fields with regular expression syntax characters (…
Browse files Browse the repository at this point in the history
…e.g. with

  '**') were not added to the form and generated a PHP warning
  (thanks to Nikola Vignjevic)
- prepare for release


git-svn-id: http://svn.php.net/repository/pear/packages/HTML_QuickForm_Renderer_Tableless/trunk@266700 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Mark Wiesemann committed Sep 23, 2008
1 parent 9dccf1f commit c143ffb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion HTML/QuickForm/Renderer/Tableless.php
Expand Up @@ -208,7 +208,7 @@ function renderElement(&$element, $required, $error)
}
if ($element->getType() != 'static' && !empty($id)) {
$html = str_replace('<label', '<label for="' . $id . '"', $html);
$element_html = preg_replace('#name="' . $id . '#',
$element_html = preg_replace(preg_quote('#name="' . $id . '#'),
'id="' . $id . '" name="' . $id,
$element_html,
1);
Expand Down
13 changes: 6 additions & 7 deletions package2.xml
Expand Up @@ -19,10 +19,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
<email>wiesemann@php.net</email>
<active>yes</active>
</lead>
<date>2007-10-24</date>
<time>22:15:00</time>
<date>2008-09-23</date>
<time>18:15:00</time>
<version>
<release>0.6.0</release>
<release>0.6.1</release>
<api>0.6.0</api>
</version>
<stability>
Expand All @@ -31,10 +31,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
</stability>
<license>New BSD</license>
<notes>
- setElementTemplate() now allows to apply a template multiple elements with
a single call (the second parameter can now be an array of element names;
this addition was inspired by a blog comment from Noel, herrnoel at gmail
dot com, thanks)
- Bug #14443: form fields with regular expression syntax characters (e.g. with
'**') were not added to the form and generated a PHP warning
(thanks to Nikola Vignjevic)
</notes>
<contents>
<dir name="/">
Expand Down

0 comments on commit c143ffb

Please sign in to comment.