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)    
Subscription  


 [2007-11-11 11:55 UTC] dazjorz (Sjors Gielen)
Description: ------------ I noticed that 'IRC' links (e.g. [url=irc://chat.freenode.net/php]#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://chat.freenode.net/php]#php[/url]"); /* Expected output: * <a href="irc://chat.freenode.net/php">#php</a> * Got output: * #php */ ?> Expected result: ---------------- I expect to get: <a href="irc://chat.freenode.net/php">#php</a> Actual result: -------------- I got: #php

Comments

 [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 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.