Skip to content

Commit b6a26c2

Browse files
committed
using substr_replace for better www. insertion
1 parent 9ba8659 commit b6a26c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ private function withWwwPrefixWhenRequired($httpsRequestUri)
7676
return $httpsRequestUri;
7777
}
7878

79-
return str_replace('https://', 'https://www.', $httpsRequestUri);
79+
return substr_replace($httpsRequestUri, 'www.', 8, 0);
8080
}
8181
}

0 commit comments

Comments
 (0)