开发者

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']))));

?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜