[Solved] CGBlog: using " in title not possible

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
joxyzhan
Forum Members
Forum Members
Posts: 18
Joined: Wed Nov 21, 2012 12:18 pm

[Solved] CGBlog: using " in title not possible

Post 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)
Last edited by joxyzhan on Wed Feb 27, 2013 8:42 pm, edited 1 time in total.
joxyzhan
Forum Members
Forum Members
Posts: 18
Joined: Wed Nov 21, 2012 12:18 pm

Re: CGBlog: using " in title not possible

Post 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?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: CGBlog: using " in title not possible

Post by paulbaker »

Just tried on a live site of mine, because I didn't believe you ;D

But you are right O0

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 '
joxyzhan
Forum Members
Forum Members
Posts: 18
Joined: Wed Nov 21, 2012 12:18 pm

Re: CGBlog: using " in title not possible

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: CGBlog: using " in title not possible

Post by paulbaker »

Bazinga!

Calguy has fixed and released a new version. ;D Thanks calguy.
joxyzhan
Forum Members
Forum Members
Posts: 18
Joined: Wed Nov 21, 2012 12:18 pm

Re: [Solved] CGBlog: using " in title not possible

Post by joxyzhan »

Three days from report to solution, great! :-*
Post Reply

Return to “Modules/Add-Ons”