Skip to content

Commit

Permalink
Fix deprecation warning in router
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Mar 25, 2024
1 parent 0ea5df2 commit 47bd0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? '/'
);

// Emulate Apache's `mod_rewrite` functionality
Expand Down

0 comments on commit 47bd0b9

Please sign in to comment.