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

Request #6799 overzealous quoting of strings
Submitted: 2006-02-16 17:36 UTC
From: dev at webzone dot it Assigned:
Status: Verified Package: HTML_Template_Flexy (version 1.2.4)
PHP Version: Irrelevant OS: fedora 4
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-05-12 08:06 UTC
Package:
Bug Type:
Summary:
From: dev at webzone dot it
New email:
PHP Version: Package Version: OS:

 

 [2006-02-16 17:36 UTC] dev at webzone dot it
Description: ------------ when i pass a string to a function in the template page flexy compile this string added to it a slash. Test script: --------------- template.html {a_function(#a string whit single quota ' etc.. #):h} flexy compile it in.. <?php [..] echo $t->a_function("a string whit single quota \' etc.. ");?> the result is wrong! a string whit single quota \' etc..

Comments

 [2006-05-12 08:06 UTC] alan_k (Alan Knowles)
It's being a little overprotective here.. Not really critical, but would be nice if it could be fixed... (patches welcome) Downgrading to Change Request.
 [2009-03-08 14:02 UTC] ranvis (Kentaro Sato)
Noticed that he was saying that string "\'" is treated exactly as \' not ' alone. Furthermore, $ (dollar sign) is not escaped so it's parsed as a local variable, which might not be the expected behavior?
 [2009-03-08 14:03 UTC] ranvis (Kentaro Sato)
The following patch has been added/updated: Patch Name: quoting.diff URL: patch quoting.diff
 [2009-03-08 14:05 UTC] ranvis (Kentaro Sato)
The following patch has been added/updated: Patch Name: quoting.test-snippet URL: patch quoting.test-snippet
 [2009-04-15 19:02 UTC] ranvis (Kentaro Sato)
The following patch has been added/updated: Patch Name: quoting.diff Revision: 1239804163 URL: http://pear.php.net/bugs/patch-display.php?bug=6799&patch=quoting.diff&revision=1239804163&display=1