Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.4

Bug #1299 Case sensitive in tag ?
Submitted: 2004-04-27 16:25 UTC Modified: 2005-10-18 08:10 UTC
From: dryss at jeuxonline dot info Assigned: quipo
Status: Closed Package: HTML_BBCodeParser
PHP Version: 4.3.4 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-27 16:25 UTC] dryss at jeuxonline dot info
Description: ------------ (in order sorry for my bad english, i am french). After testing your script, i have a big problem : i cant use the tag with capital, only small letter : [url=http://www.google.com]Link[/url] is working [URL=http://www.google.com]Link[/url] dont work [url=http://www.google.com]Link[/URL] dont work The parser only parse tag with small letter. Is there an option to activate the parsing of capital tag ? It is very important for me, i have to activate this for the writters of my network who doesn't know HTML.

Comments

 [2004-10-18 08:40 UTC] zilla at gmx dot de
Had the same Problem. I fixed it by changing Line 316 in BBCodeParser.php from $newTag = $this->_buildTag(substr($str, $strPos, $closePos - $strPos + 1)); to $newTag = $this->_buildTag(strtolower(substr($str, $strPos, $closePos - $strPos + 1))); Hope it helps Nicole
 [2005-10-18 08:10 UTC] quipo
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.