![]() |
|
|||
|
Hi
i have a form for comments and it work great with english and hebrew untill i add the filer Zend_Filter_HtmlEntities. if i remove the filer i can send in hebrew but the i can use javascript in the form, so there is a security issue here. i echoed the post variable with and without the filter: without the hebrew is there. with: instead of the hebrew i get all sorts of symbols. the page charset is utf-8, and hebrew is displyed. this is the implementation: Code:
$htmlentities = new Zend_Filter_HtmlEntities();
$name = $htmlentities->filter($this->_request->getPost('name'));
$title = $htmlentities->filter($this->_request->getPost('title'));
$commentField=$htmlentities->filter($this->_request->getPost('comment'));
best regards ron |
|
|||
|
hi
i found this article that addresses this very problem, it is explained great and worked for me: htmlentities and character encoding Drowned World hope it will help others too ron |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |