filename parsing and assets
Hi again,
a client seems to have difficulty in not uploading images with parentheses in the file name via the WYSIWYG image button (CKE). Eg "my_image(5).jpg". Of course, this is OK for a file name, but not for parsing via php, where extraneous brackets break the parsing and the front-end page ( the field in question is in a module and is being rendered via parse_template_syntax() ).
Is it possible to either prevent uploads with parentheses, or re-write the file name on the fly when using the asset upload modals?
Comments
<img alt="" src="{img_path({img_path('test(300).jpg')})}" />
Is that what you are seeing?
https://github.com/daylightstudio/FUEL-CMS/commit/f501fc90b69b098fe033468441f9420d8209a145
<p><img alt="" src="{img_path(_uploads/test(300).jp)}" /></p>
If saved in the database, with the full extension, the parse_template_syntax() is still having trouble eg:
Compilation error at line 1 in "string:" : Parse error in ".jpg)}" />