Skip to content

Commit f1843d3

Browse files
author
xxx
committed
fixed: url_v2未考虑Path的/前缀
1 parent 87f4beb commit f1843d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ function url_v2($path): string
668668
}
669669

670670
if ($domain) {
671-
return $domain . '/' . ltrim($path);
671+
return $domain . '/' . ltrim($path, '/');
672672
}
673673

674674
return $path;

0 commit comments

Comments
 (0)