Login!
Lost password?
 

MODx Bug/Feature Tracker and Feature Requests

Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!

FS#334 — Parser problem when using special characters in snippet parameters

Attached to Project — MODx
Opened by David Carter (ddecjc) - Tuesday, 04 April 2006, 04:37AM
Last edited by Garry Nutting (garryn) - Wednesday, 27 September 2006, 01:57PM
Task Type Bug Report
Category Core Distribution
Status Closed
Assigned To Jason Coward (opengeek)
Garry Nutting (garryn)
Operating System All
Severity Medium
Priority Normal
Reported Version 0.9.1
Due in Version 0.9.5
Due Date Undecided
Percent Complete 100%

Details

When using special characters in snippet parameters, part or all of the parameter value is ignored. For example, the snippet call

[!NewsListing? &tpl=`NewsListingTemplate` &startID=`2` &truncText=`Lea más...`!]

results in &trucText being rendered as "Lea ". The last part of the value ("más...") is ignored.
This task depends upon

This task blocks these from closing
Closed by  Garry Nutting (garryn)
Friday, 26 September 2008, 08:59AM
Reason for closing:  Deferred
Additional comments about closing:  This functionality will be available in MODx Revolution.
Comment by David Carter (ddecjc) - Tuesday, 04 April 2006, 07:05AM
I found the cause of the problem. See
http://modxcms.com/forums/index.php/topic,3772.0.html#msg27380

for details.

Comment by David Carter (ddecjc) - Wednesday, 05 April 2006, 10:12AM
Jason came up with a solution which he posted in the thread linked above. It would be a good idea to include that in the core code for 0.9.2.

Comment by Garry Nutting (garryn) - Friday, 22 September 2006, 03:16PM
  • Field changed: Status (Assigned → Requires testing)
  • Field changed: Percent Complete (0% → 100%)
Fix committed to SVN (#1492 - needs merging with main trunk for testing)

Comment by Garry Nutting (garryn) - Wednesday, 27 September 2006, 01:57PM
  • Field changed: Status (Requires testing → Reopened)
  • Field changed: Percent Complete (100% → 50%)
Reopened due to proposed fix having problems with PHP4 when using UTF-8 as the charset (PHP problem with html_decode_entity)

Currently researching alternatives.

Comment by JG Estiot (jgestiot) - Wednesday, 29 August 2007, 11:20AM
I am just wondering what progress is being made on this issue. I have written a snippet where the equal character "=" (among others) needs to be passed within the parameters.

MODx 0.96 seems to still be choking on special chars in the parameters to snippets. I can apply a patch and make my local version work but I can't release my snippet.