Skip to content

Commit

Permalink
fix: unnecessary lowercasing parameters (#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfactory-robin-martijn committed Jan 26, 2024
1 parent 829c3c3 commit 664ea62
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/URLHelper.php
Expand Up @@ -40,7 +40,7 @@ public static function get_scheme()
/**
* Check to see if the URL begins with the string in question
* Because it's a URL we don't care about protocol (HTTP vs HTTPS)
* Or case (so it's cAsE iNsEnSeTiVe)
* Or case (so it's cAsE iNsEnSiTiVe)
*
* @api
* @return boolean
Expand Down Expand Up @@ -535,8 +535,7 @@ public static function user_trailingslashit($link)

/**
* Returns the url path parameters, or a single parameter if given an index.
* Normalizes REQUEST_URI to lower-case. Returns false if given a
* non-existent index.
* Returns false if given a non-existent index.
*
* @example
* ```php
Expand All @@ -563,7 +562,7 @@ public static function user_trailingslashit($link)
*/
public static function get_params($i = false)
{
$uri = \trim(\strtolower($_SERVER['REQUEST_URI']));
$uri = \trim($_SERVER['REQUEST_URI']);
$params = \array_values(\array_filter(\explode('/', $uri)));

if (false === $i) {
Expand Down

0 comments on commit 664ea62

Please sign in to comment.