Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{make_nocache $var} escapes string wrong #305

Closed
0xFEEDC0DE64 opened this issue Oct 15, 2016 · 1 comment
Closed

{make_nocache $var} escapes string wrong #305

0xFEEDC0DE64 opened this issue Oct 15, 2016 · 1 comment

Comments

@0xFEEDC0DE64
Copy link

I think that this issue is a different one from the other one I just created (#304).

Apostrophes are encoded wrong. I looked in the generated sources in a cache file and found this in an array definition:

=>array('ID'=>258,'Name'=>'ChrisO\\'Dowd',)

The backslashes only should occur 1 time.

It leads to the PHP error:

Parse error: syntax error, unexpected 'Dowd' (T_STRING), expecting ')' in /somewhere/cache/dd31c5288f02ce832e61aba7d2505c6d67d5a21e.series_add.tpl.php on line 126

My PHP source and template are both on GitHub:
https://github.com/0xFEEDC0DE64/1000serien.com/blob/master/models/series/series_add.php
https://github.com/0xFEEDC0DE64/1000serien.com/blob/master/views/series/series_add.tpl

@uwetews
Copy link
Contributor

uwetews commented Oct 19, 2016

This bug is fixed now in the master branch

@uwetews uwetews closed this as completed Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants