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

Bug #7091 Variable Substitution Bug
Submitted: 2006-03-10 18:09 UTC
From: randlem at bgsu dot edu Assigned: toggg
Status: Closed Package: Text_Wiki (version 1.1.0)
PHP Version: 5.1.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 : 24 + 30 = ?

 
 [2006-03-10 18:09 UTC] randlem at bgsu dot edu (Mark Randles)
Description: ------------ In the LaTeX render classes for both wikilink and freelink (and most likely others) variable substitution is used to insert the values into the formatted string. This is unsafe as it inserts an extra \ which masks a { and latex cannot match the next } correctly. A more correct (or at least safer) version should use concatination to build the return string. Affects (at least): Render/Latex/Wikilink.php Render/Latex/Freelink.php Test script: --------------- $text = 'foobar'; $href = 'http://www.example.com/wiki?id=foobar'; return "$text\\footnote\{$href}"; A safer version: return $text. '\\footnote{'. $href. '}'; Expected result: ---------------- foobar\footnote{http://www.example.com/wiki?id=foobar} Actual result: -------------- foobar\footnote\{http://www.example.com/wiki?id=foobar}

Comments

 [2006-03-10 18:33 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!
 [2006-03-11 11:14 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!