问题描述
你好,
我有一个假冒文件夹和网站的网站文件。
htaccess将所有内容重写为index.php?vars
现在在index.php中我决定用开关/盒包含哪个文件
声明。
定义我的位置,我爆炸查询字符串,并检查$ array [0]
我在哪里作为主要部分。
只有现在,如果彼此后面有两个斜杠
(文件夹//子文件夹),则值介于'''''之间
被忽略了,虽然在''真实''中会出错。我怎么能
爆炸告诉
我的价值是''''?
我希望你理解(对不起)我的英文)
Frizzle。
Hi there,
i have a site with fake folders & files.
htaccess rewrites everything to index.php?vars
now in index.php i decide what file to include with a switch/case
statement.
to define where i am, i explode the query string, and check $array[0]
where i am for the main section.
Only now if there are two slashes behind each other
(folder//subfolder), the value inbetween ( '''' )
gets ignored, though in ''real'' it would give an error. How can i have
explode telling
me that value is '''' ?
I hope you understand (sorry for my english)
Frizzle.
推荐答案
最好的办法是确保explode()从来没有看到过。
<?php
Best thing is to make sure explode() never even sees that.
<?php
这篇关于爆炸+网址伪造问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!