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

Bug #5660 bug in anchor parsing
Submitted: 2005-10-11 18:44 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 13 - 4 = ?

 
 [2005-10-11 18: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 23:46 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-10-19 23:50 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!