Re: PHP 5.1

From: Date: Sun, 06 Feb 2005 17:21:45 +0000
Subject: Re: PHP 5.1
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-14660@lists.php.net to get a copy of this message
Well, you already have the problem. The filter hook has been in PHP5 for 2 years now and people are using it already. And yes, your code is likely not to work on those servers if you are expecting raw html tags to get through. There are plenty of people who have to operate under a mandated security policy. That policy may state among many other things that no user-originated raw html tags may ever be displayed. Now, if I gave you that problem and a couple of thousand servers running millions of lines of PHP code, how would you solve it? My solution is to block everything and then go and fix the few places where raw tags are actually supposed to get through and make sure those few places are validated correctly. You seem to be be indicating that you would go through every line of code and make sure every single application did all validation correctly. Want to wager a guess at who would be done first? I am wide open to other approaches to solving this problem. -Rasmus Ron Korving wrote:
Well there you go. A default filter. So I don't know what you mean with "For the 18th time, nobody is talking about enabling it by default.", because an administrator might. And I as a developer have no clue. Personally, I don't see why a webserver admin should need to secure his server through means of a default filter. There are good ways to secure a machine. This is not one of them You don't secure a server by setting a default that a user can override. So really, that is no argument. Like I said before. If a webserver admin dicatates the default way $_GET and $_POST data is perceived, a website developer has no choice but to use this filtering mechanism on every input variable he receives, because he just can't rely on PHP's default behaviour anymore. You see, not everybody agrees that you can't do without input filtering (myself for example), so in the end, there's no doubt in my mind that forcing a new magic default on PHP-users will make a lot of people unhappy.


« previous php.internals (#14660) next »