Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

X-Cart v4.4.3 released

 
Closed Thread
   X-Cart forums > News and Announcements
 
Thread Tools
  #121  
Old 08-19-2011, 05:44 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart v4.4.3 released

Found this on 4.4.3 with static pages but most likely applies to all 4.4.x on all pages. If you have a static page "First & Second" you can give it a name "First & Second" so you don't get validation errors. Custom title of the page cannot be saved as "First & Second" - it converts back to "First & Second". So when you go to the page on the front end the title of the page in the html code is "First & Second" and what you see on browser title is "First & Second" which is obviously wrong. This is due to conversion made in /include/templater/plugins/function.get_title.php by this code

Code:
// escape if (X_USE_NEW_HTMLSPECIALCHARS) { $charset = $smarty->get_template_vars('default_charset') ? $smarty->get_template_vars('default_charset') : 'ISO-8859-1'; $title = @htmlspecialchars($title, ENT_QUOTES, $charset); } else { $title = htmlspecialchars($title, ENT_QUOTES); }

Adding false to this line

Code:
$title = @htmlspecialchars($title, ENT_QUOTES, $charset, false);

so no encoding is performed on existing html entities fixes it.

This same is use also for meta description and keywords
/include/templater/plugins/function.meta.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following 2 users thank cflsystems for this useful post:
flyclothing (08-20-2011), parekh81 (09-01-2011)
  #122  
Old 08-31-2011, 05:45 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart v4.4.3 released

Another 4.4.x bug

https://bugtracker.qtmsoft.com/view.php?id=40243
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following user thanks cflsystems for this useful post:
parekh81 (09-01-2011)
Closed Thread
   X-Cart forums > News and Announcements


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:30 PM.

   

 
X-Cart forums © 2001-2020