設置 | 登錄 | 註冊

目前共有5篇帖子。

【bug】搜索框关键词中不能带/,否则会http404找不到页面

1樓 巨大八爪鱼 2024-10-24 19:30
/u/u吧的页面提示不存在:
https://zh.purasbar.com/mobile/bar/%2Fu%2Fu
搜索/u/u的页面提示不存在:
https://zh.purasbar.com/mobile/search/%2Fu%2Fu
2樓 巨大八爪鱼 2024-10-24 19:31
如果换成反斜杠,则会报http 400 bad request的错误。
HTTP Status 400 – Bad Request
Type Status Report

Message Invalid URI

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Apache Tomcat/9.0.62
巨大八爪鱼网址:
https://zh.purasbar.com/mobile/search/%E4%BE%83%E5%90%A7%E8%B0%83%E8%AF%95%E4%B8%AD%E5%BF%83%5Cu
3樓 巨大八爪鱼 2024-10-24 19:36
原因:汤姆猫服务器默认不允许文件名中出现正斜杠和反斜杠。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。