【发布时间】:2011-01-15 13:53:38
【问题描述】:
我允许用户在 mysite.com/go/QUERY\
上提交查询如果查询包含“/”Apache 阻塞。
来自 urls.py:
(r'^go/(?P<querytext>.*)$', 'mysite.engine.views.go'),
试试:
http://mysite.com/go/http%3A%2F%2F
结果:
Not Found
The requested URL /go/http:// was not found on this server.
Apache/2.2.12 (Ubuntu) Server at ...
但是,如果我输入非 URL 引用的值,它会起作用:
http://mysite.com/go/http:// 工作得很好......
有什么想法吗?
【问题讨论】: