Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搜索跳转并没有完全进行url编码 #6234

Closed
4 tasks done
ikenxuan opened this issue Mar 18, 2024 · 1 comment
Closed
4 tasks done

搜索跳转并没有完全进行url编码 #6234

ikenxuan opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ikenxuan
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.32.0

Driver used / 使用的存储驱动

本地

Describe the bug / 问题描述

如视频的标题为原神未来抽卡建议:万叶和那维莱特怎么抽最赚? #原神 #原神枫丹.mp4
image
通过索引搜索
image
image

点击跳转后会跳转到可以看到此时url并没有对#进行编码
http://localhost:5244/alyun/%E8%A7%86%E9%A2%91%E8%A7%A3%E6%9E%90%E7%BC%93%E5%AD%98/video/%E5%8E%9F%E7%A5%9E%E6%9C%AA%E6%9D%A5%E6%8A%BD%E5%8D%A1%E5%BB%BA%E8%AE%AE%EF%BC%9A%E4%B8%87%E5%8F%B6%E5%92%8C%E9%82%A3%E7%BB%B4%E8%8E%B1%E7%89%B9%E6%80%8E%E4%B9%88%E6%8A%BD%E6%9C%80%E8%B5%9A%EF%BC%9F%20#%E5%8E%9F%E7%A5%9E%20#%E5%8E%9F%E7%A5%9E%E6%9E%AB%E4%B8%B9.mp4?from=search

导致在浏览器中查看地址是(这里只对空格作了处理)
image
然而正确的连接应该是
http://localhost:5244/alyun/%E8%A7%86%E9%A2%91%E8%A7%A3%E6%9E%90%E7%BC%93%E5%AD%98/video/%E5%8E%9F%E7%A5%9E%E6%9C%AA%E6%9D%A5%E6%8A%BD%E5%8D%A1%E5%BB%BA%E8%AE%AE%EF%BC%9A%E4%B8%87%E5%8F%B6%E5%92%8C%E9%82%A3%E7%BB%B4%E8%8E%B1%E7%89%B9%E6%80%8E%E4%B9%88%E6%8A%BD%E6%9C%80%E8%B5%9A%EF%BC%9F%20%23%E5%8E%9F%E7%A5%9E%20%23%E5%8E%9F%E7%A5%9E%E6%9E%AB%E4%B8%B9.mp4?from=search
image

但是不通过搜索找到的话,直接点击是可以正确访问文件的
image

Reproduction / 复现链接

暂无

Config / 配置

暂无

Logs / 日志

No response

@ikenxuan ikenxuan added the bug Something isn't working label Mar 18, 2024
@potoo0
Copy link
Contributor

potoo0 commented Apr 28, 2024

看起来最近没人改,这个问题其实很容易改,就是搜索结果编码时不应该用 encodeURI 而应该使用 encodeURIComponent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants