Skip to content

Commit d607886

Browse files
author
li-guohao
committed
fix: 文件夹有加号时自动转没了
1 parent 861b564 commit d607886

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44

5+
# 0.12.4
6+
7+
## 修复
8+
9+
- 文件夹有加号时自动转没了
10+
511
# 0.12.3
612

713
## 优化

console/src/views/AListControl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const doPostImportPath = () => {
1717
}
1818
// basic64 编码
1919
console.debug('original path value: ', path.value);
20-
var base64Path = Base64.encode(path.value);
20+
const base64Path = Base64.encode(path.value);
2121
console.debug('basic64 path value: ', base64Path);
2222
let config = {
2323
headers: {'Content-Type': "application/json;charset=UTF-8"}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group=run.ikaros.plugin.alist
22
description=A ikaros plugin for alist.
3-
version=0.12.3
3+
version=0.12.4

src/main/java/run/ikaros/plugin/alist/AListEndpoint.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ Mono<ServerResponse> doImportFilesFromAList(ServerRequest request) {
5656
return request.bodyToMono(AListImportPostBody.class)
5757
.filter(Objects::nonNull)
5858
.map(AListImportPostBody::getPath)
59+
.doOnSuccess(s -> log.debug("original path: {}", s))
5960
.map(path -> new String(Base64.getDecoder().decode(path), StandardCharsets.UTF_8))
61+
.doOnSuccess(s -> log.debug("base64 decoded path: {}", s))
62+
.map(path -> path.replace("+", "%2B"))
6063
.map(path -> URLDecoder.decode(path, StandardCharsets.UTF_8))
61-
.doOnSuccess(s -> log.debug("path: {}", s))
64+
.doOnSuccess(s -> log.debug("url decoded path: {}", s))
6265
.filter(StringUtils::isNotBlank)
6366
.flatMap(this::removeHttpPrefixIfExists)
6467
.doOnSuccess(s -> log.debug("relative path: {}", s))

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: PluginAList
44
# plugin entry class that extends BasePlugin
55
clazz: run.ikaros.plugin.alist.AListPlugin
66
# plugin 'version' is a valid semantic version string (see semver.org).
7-
version: 0.12.3
7+
version: 0.12.4
88
requires: ">=0.12.1"
99
author:
1010
name: Ikaros OSS Team

0 commit comments

Comments
 (0)