note 104344 deleted from function.urlencode by peehaa

From: Date: Fri, 06 Jan 2017 15:48:21 +0000
Subject: note 104344 deleted from function.urlencode by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208691@lists.php.net to get a copy of this message
Note Submitter: sroolig at gmail dot com ---- I write this code, to full protect from XSS: <?php $url = ""; for($i = 0; $i < strlen($value); $i++) $url .= strpos("/:@&%=?.#", $value[$i]) === False ? urlencode($value[$i]) : $value[$i]; $value = $url; ?>

« previous php.notes (#208691) next »