Page 1 of 1
[Solved] CGBlog: using " in title not possible
Posted: Fri Feb 01, 2013 1:55 pm
by joxyzhan
Hello,
When adding a new blog post in the backend where the title includes the character " everything seems okay... The blog post is published and listed correctly in the backend with title and content. But when opening the blogpost to make edits I realize that the Title field is empty...! (And therefor cannot be commented by readers in the frontend, that is how I found out).
Why?
I am quite sure I didn't cause this myself by messing around with the code...?
How to fix?
Using CGBlog version 1.9.8 (and CMSMS 1.11.2.1)
Re: CGBlog: using " in title not possible
Posted: Fri Feb 01, 2013 2:19 pm
by joxyzhan
Checking the templates in CGBlog and CGFeedback and googling around for answers I suspect that it could all be related to differences in snippets of code like:
Code: Select all
{$entry->title|escape}
{$entry->title|escape:htmlall}
{$entry->title|htmlspecialchars}
{$input_comment|htmlspecialchars}
{$input_comment|html_entity_decode:$smarty.const.ENT_QUOTES}
...and such. That I (as relative newbie) cannot completely comprehend.
But those are all from templates - and my problem with the CGBlog backend Title field has to be managed "under the hood" right?
Re: CGBlog: using " in title not possible
Posted: Sat Feb 02, 2013 2:07 am
by paulbaker
Just tried on a live site of mine, because I didn't believe you
But you are right
Seems the system truncates titles after a " mark. I checked the forge for bug reports (always worth doing) and indeed this is a known bug - that means the developer is aware:
http://dev.cmsmadesimple.org/bug/view/8142
It would help if you added a comment to that bug report stating your CMSMS version (higher than the reported bug).
In the meantime I suggest a workaround, e.g. using single quotes '
Re: CGBlog: using " in title not possible
Posted: Sun Feb 03, 2013 11:44 pm
by joxyzhan
Thanks for your response Paul! Good thing you tried it yourself.
Yeah I changed to '' (that is a double ' ) to make it work this time... Hope the customer wont notice it
Posted a comment in the bug report.
Re: CGBlog: using " in title not possible
Posted: Mon Feb 04, 2013 3:35 pm
by paulbaker
Bazinga!
Calguy has fixed and released a new version.
Thanks calguy.
Re: [Solved] CGBlog: using " in title not possible
Posted: Wed Feb 27, 2013 8:44 pm
by joxyzhan
Three days from report to solution, great!