Skip to content

Commit

Permalink
Lowercase addresses and tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKo7v committed Apr 3, 2017
1 parent 999f1df commit 02ed557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
$error = TRUE;
$header = "";
$uri = $_SERVER['REQUEST_URI'];

// Uri to lowercase
if(preg_match("/[A-Z]+/", $uri)){
header("Location: " . strtolower($uri));
die();
}
if(FALSE !== strpos($uri, '?')){
$uri = substr($uri, 0, strpos($uri, '?'));
}
Expand Down

0 comments on commit 02ed557

Please sign in to comment.