ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Dev
php-Dev
[PHP-DEV] Re: Proporsal for cascadable general HTTP input handler
by Yasuo Ohgaki other posts by this author
Dec 9 2001 11:14PM messages near this date
[PHP-DEV] Proporsal for cascadable general HTTP input handler | Re: [PHP-DEV] Proporsal for cascadable general HTTP input handler
Rui Hirokawa wrote:

>  Hi,
>  
>  I propose a new idea for HTTP input handler to improve security and
>  multibyte encoding support.
>  
>  Currently, user input by POST/GET/Cookie is treated by
>  internal function php_treat_variables().
>  
>  Some security related work to prevent some security attack 
>  is preformed in PHP script by htmlspecialchars() and regex().
>  
>  And multibyte encoding detection and translation which is necessary
>  for multibyte enable Web application is implemented by 
>  override php_treat_variables().
>  
>  My idea is to introduce some general input filter/handler
>  for php_treat_variables().
>  
>  It is a similar concept as output buffering handler.
>  
>  For example, if a user defined 
>  
>  input_handler = http_input_check,mb_filter


Currently, output_handler directive accepts one handler AFIAK. If php
parser is going to be changed. It would be nice to have the same
syntax for output_handler also.


>  
>  in php.ini, user defined security check handler and
>  multibyte encoding translation are perfomed.
>  
>  Generally, http input check for secure transaction is really
>  hard work and some programers might make some critical mistake.
>  And PHP script with http input check is usually hard to read.


Agreed. I have class for that, but if PHP support input handler, it
helps a lot.

>  
>  If we can use http input handler, we can implemnt separately
>  http input check and Web application.
>  


*1

-- 
Yasuo Ohgaki


-- 
PHP Development Mailing List <http://www.php.net/> 
To unsubscribe, e-mail: php-dev-unsubscribe@[...].net
For additional commands, e-mail: php-dev-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:
Rui Hirokawa
Yasuo Ohgaki
Zeev Suraski
Rui Hirokawa

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved