fix: avoid userinfo url rewrites

This commit is contained in:
Keith Solomon
2026-04-26 14:45:17 -05:00
parent badd58ada6
commit e744754389
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ final class UrlTransformer {
$sources
);
return '~(?<![A-Za-z0-9.-])(?:' . implode( '|', $quoted ) . ')(?![A-Za-z0-9.-])~';
return '~(?<![A-Za-z0-9.-])(?:' . implode( '|', $quoted ) . ')(?![A-Za-z0-9.@-])~';
}
private function toProtocolRelative( string $url ): string {