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 21:25 UTC
From: dryss at jeuxonline dot info Assigned: quipo
Status: Closed Package: HTML_BBCodeParser
PHP Version: 4.3.4 OS: Linux
Roadmaps: (Not assigned)    

 [2004-04-27 21: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=]Link[/url] is working [URL=]Link[/url] dont work [url=]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.


 [2004-10-18 13: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 13:10 UTC] quipo
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.