cookie_urlencode.php 242 字节 原文件 审查 历史 永久链接 1 2 3 4 5 6 7 8 9 10 11 12 <?php use Symfony\Component\HttpFoundation\Cookie; $r = require __DIR__.'/common.inc'; $str = '?*():@&+$/%#[]'; $r->headers->setCookie(new Cookie($str, $str, 0, '', null, false, false)); $r->sendHeaders(); setcookie($str, $str, 0, '/');