rawurlencode validation
I have a feeling I am overdoing th开发者_运维技巧is but just to guard against xss and others...
<?php
//will pass as get parameter to a another page
header("Location: /nextpage?p=". rawurlencode(strip_tags(htmlspecialchars($_SERVER['REQUEST_URI']))));
?>
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论