mirror of
https://github.com/typecho/typecho.git
synced 2025-04-14 06:41:53 +02:00
fix #1147
This commit is contained in:
parent
ee00fc567f
commit
0759a9414a
@ -138,11 +138,7 @@ namespace Typecho {
|
||||
public static function url(?string $path, ?string $prefix): string
|
||||
{
|
||||
$path = (0 === strpos($path, './')) ? substr($path, 2) : $path;
|
||||
return rtrim(
|
||||
rtrim($prefix, '/') . '/'
|
||||
. str_replace('//', '/', ltrim($path, '/')),
|
||||
'/'
|
||||
);
|
||||
return rtrim($prefix, '/') . '/' . str_replace('//', '/', ltrim($path, '/'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user