Welcome! Log In Create A New Profile

Advanced

request_uri и url_encode

October 30, 2013 06:07AM
Есть два набора серверов, настроенные практически идентично. Первый - production, второй - тестовый.

Production: server1(nginx:80) proxy_pass--> server2(nginx:80 proxy_pass--> php-fpm:unix)
Test: server1(nginx:80 proxy_pass--> nginx:8080 proxy_pass--> php-fpm:unix)

Проверяю в php-скрипте переменную сервера request_uri и в первом случае, вставив в путь
"/><script>alert(123);</script>
получаю в этой переменной %22/%3E%3Cscript%3Ealert%28123%29;%3C/script%3E
а во втором "/><script>alert(123);</script>
Может ли это быть связанным с nginx, почему в первом случае url кодируется, а во втором нет?
Subject Author Posted

request_uri и url_encode

Bionicman October 30, 2013 06:07AM

Re: request uri и url encode

Maxim Dounin October 30, 2013 06:32AM

Re: request uri и url encode

Bionicman October 30, 2013 10:25AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 270
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready