AlistGo / AlistGo/alist

AList的OneDrive驱动的自定义加速Host如果有 ":" 就会返回错误的链接

Abierto
#7,287 3 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

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

- [X] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

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

### AList Version / AList 版本

v3.37.4

### Driver used / 使用的存储驱动

OneDrive

### Describe the bug / 问题描述

OneDrive驱动的自定义加速Host不能正确返回结果

例如说填入这个加速链接
test.example.com

这时候AList返回的是正确的结果
https://test.example.com/personal/xxxxxxxx

但是如果按照这样填入会出现问题
test.example.com/https://xxxxxx-my.sharepoint.com

这时候AList返回的链接就是这个
https://alist.example.com/private/OneDrive/目录1/https://test.example.com/https://xxxxxx-my.sharepoint.com/personal/xxxxx

但是正确的返回结果应该是 https://test.example.com/https://xxxxxx-my.sharepoint.com/personal/xxxxx

### Reproduction / 复现链接

暂时无法提供,但是只要自定义加速host类似于 test.example.com/https://xxxx.com 就会返回错误结果

### Config / 配置

不需要

### Logs / 日志

![image](https://github.com/user-attachments/assets/9928df24-837c-4223-b499-318a9d732345)
这是返回的错误地址 加速Host是test.yyyyt.top/https://xxxx.com

![image](https://github.com/user-attachments/assets/4be941c8-1f1e-4523-89e8-e230f14c8760)
这个是加速Host是test.yyyyt.top的效果

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.