开发者

rawurlencode validation

开发者 https://www.devze.com 2023-02-02 22:23 出处:网络
I have a feeling I am overdoing th开发者_运维技巧is but just to guard against xss and others...

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

精彩评论

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