爆炸+网址伪造问题 [英] Explode + url faking problem

查看:77
本文介绍了爆炸+网址伪造问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我有一个假冒文件夹和网站的网站文件。

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.

推荐答案

array [0]

我所在的主要部分。

只有现在如果彼此后面有两个斜杠

(文件夹//子文件夹),其值为inbetween(' ''')

被忽略,但在''真实''中会出错。我怎么能

爆炸告诉

我的价值是''''?


我希望你理解(对不起)我的英文)


Frizzle。

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.


frizzle写道:
frizzle wrote:
只有现在如果彼此后面有两个斜杠
(文件夹//子文件夹)
Only now if there are two slashes behind each other
(folder//subfolder)




最好的办法是确保explode()从来没有看到过。


<?php



Best thing is to make sure explode() never even sees that.

<?php


url =''文件夹//子文件夹///// somefile'';


while(strstr(
url = ''folder//subfolder/////somefile'';

while (strstr(


这篇关于爆炸+网址伪造问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆