CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#3976] Apstrophes in site name don't selflink properly

avatar
Created By: Tim (gshs123)
Date Submitted: Tue Sep 01 20:42:49 -0400 2009

Assigned To:
Version: 1.6
CMSMS Version: None
Severity: Minor
Resolution: Awaiting Response
State: Closed
Summary:
Apstrophes in site name don't selflink properly
Detailed Description:
I've posted on the forums and it was recommended that I submit a bug report.
When the site name has an apostrophe in it, and I try to use {cms_selflink
dir="start" text="$sitename"}, the text for the link on the page has "'"
where the apostrophe should be.

To recreate the bug:
Install version 1.6.4, and set the site name to "test's site" under Site Admin >
Global Settings. Then create a new page called "test's page". Create another
page after it called "test2's page". In test's page, paste the following code:

{cms_selflink dir="start" text="$sitename"}
{cms_selflink dir="next" text="$title"}
{sitename}
{title}

Everything but the first link works as expected. The first link shows
"test's site" as the text for the link.

It appears that the HTML escape characters are being applied twice. After the
first time, the apostrophe becomes "'" and after the second time, it becomes
"'", which causes it to display as "'" instead of an apostrophe.


History

Comments
avatar
Date: 2009-09-04 11:49
Posted By: Robert Campbell (calguy1000)

cms_selflink converts everything to html entities.   I bet your sitename already
has been, which causes double encoding.
      
avatar
Date: 2010-05-08 09:15
Posted By: Ronny Krijt (ronnyk)

Please retest in 1.7.1, the first line is showing fine there as well...
      
Updates

Updated: 2010-05-25 13:14
state: Open => Closed

Updated: 2010-05-08 09:15
resolution_id: 5 => 10

Updated: 2009-09-04 11:49
resolution_id: => 5