Re: Which file "Included" me?

From: Date: Sun, 22 Feb 2009 21:38:22 +0000
Subject: Re: Which file "Included" me?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-288660@lists.php.net to get a copy of this message
But we could use rawurlencode($_SERVER['PHP_SELF']), no? João Michael A. Peters wrote:
Nisse Engström wrote:
On Wed, 18 Feb 2009 10:37:53 -0800, "Michael A. Peters" wrote:
http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean)
Amazing! Not once did they mention htmlspecialchars(). /Nisse
htmlspecialchars causes problems if you are going to use the data with DOMDocument. I believe the point was to produce a proper _SERVER['PHP_SELF'] - not a sanitized but still borked version.


« previous php.general (#288660) next »