Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 04-16-2007, 03:09 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile character display problem

Chinese name cannot be displayed normally in admin comment page. but the message is ok.

found two lines in admin/comments.php

$message = pullout($row['message']);
$name = htmlentities(pullout($row['name']));

can use htmlspecialchars() instead? and why doesn't $message need too?
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #2  
Old 04-16-2007, 12:56 PM
Trauko's Avatar
Trauko Offline
pp veteran
 
Join Date: Sep 2006
Location: Dalcahue, Chiloé
Posts: 99
Quote:
Originally Posted by jdleung View Post
Chinese name cannot be displayed normally in admin comment page. but the message is ok.

found two lines in admin/comments.php

$message = pullout($row['message']);
$name = htmlentities(pullout($row['name']));

can use htmlspecialchars() instead? and why doesn't $message need too?
http://forum.pixelpost.org/showpost....6&postcount=10

In PP 1.6 final edit line 243

delete htmlentities

Quote:
$name = pullout($row['name']);
Reply With Quote
  #3  
Old 04-16-2007, 05:37 PM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Thanks, Trauko.

I solved this using htmlspecialchars(), and I just wanna know why not to use this function? or if it's a bug add htmlentities() to $name but doesn't add to $message?
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:54 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs