Improve .htaccess parsing

This commit is contained in:
Jay Trees 2022-03-25 14:44:28 +01:00
parent 9ed89ee96e
commit ef0b2118ae

View file

@ -16,7 +16,7 @@ class URL
public function getPretty(): string
{
$htaccess = explode(PHP_EOL, file_get_contents(ROOT . '/.htaccess'));
$htaccess = preg_split('/\r\n|\r|\n/', file_get_contents(ROOT . '/.htaccess'));
$pretty_url = '';
foreach ($htaccess as $index => $line) {