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

Request #12423 IRC links not allowed
Submitted: 2007-11-11 11:55 UTC
From: dazjorz Assigned: doconnor
Status: Closed Package: HTML_BBCodeParser (version 1.2.2)
PHP Version: 5.2.0 OS: GNU/Linux
Roadmaps: (Not assigned)    

 [2007-11-11 11:55 UTC] dazjorz (Sjors Gielen)
Description: ------------ I noticed that 'IRC' links (e.g. [url=irc://]#php[/url]) don't work. I fixed this by adding 'irc' to the $_allowedSchemes array. I added a patch below. It would be nice if 'irc' would be seen as an allowed scheme in the official distribution. Test script: --------------- <?php /* BBCodeParser.ini contains: * filters = Links */ require_once 'HTML/BBCodeParser.php'; $p = new HTML_BBCodeParser(@parse_ini_file("BBCodeParser.ini")); echo $p->qParse("[url=irc://]#php[/url]"); /* Expected output: * <a href="irc://">#php</a> * Got output: * #php */ ?> Expected result: ---------------- I expect to get: <a href="irc://">#php</a> Actual result: -------------- I got: #php


 [2012-01-02 08:00 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. 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.