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

Bug #5660 bug in anchor parsing
Submitted: 2005-10-11 13:44 UTC Modified: 2005-10-19 18:50 UTC
From: jeremy dot lecour at gmail dot com Assigned: toggg
Status: Closed Package: Text_Wiki
PHP Version: 4.4.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-11 13:44 UTC] jeremy dot lecour at gmail dot com
Description: ------------ Hi, I'd like to make somme links with anchors. My settings : $wiki->disableRule("wikilink"); $wiki->setRenderConf('xhtml', 'freelink', 'pages', false); $wiki->setRenderConf('Xhtml', 'freelink', 'new_url', "/ go/"); $wiki->setRenderConf('Xhtml', 'freelink', 'view_url', "/ go/"); I want to send people to http://www.mysite.com/go/page#anchor I have errors whan I type : ((page#anchor|go there)) I lose the # when I type : ((page|go there#anchor)) maybe it comes from here : File : /pear/lib/Text/Wiki/Parse/Default/Freelink.php Line 100 function process(&$matches) { // use nice variable names $page = $matches[1]; $text = $matches[2]; // get rid of the leading # from the anchor, if any $anchor = substr($matches[3], 1); (...) Why do we want to get ride of the # ? If i keep it, my links work as expected. I don't understand …

Comments

 [2005-10-19 18:46 UTC] toggg
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. Sorry for the delay, hope that is alright so. Salut au LUG provencial :)
 [2005-10-19 18:50 UTC] toggg
Pardon, provençal, sorry the PLUG