mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-23 05:21:06 -05:00
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
if (preg_match('#^/u/#', $_SERVER["REQUEST_URI"])) {
|
||||
$username = basename($_SERVER["REQUEST_URI"]);
|
||||
if ((!empty($username)) && (strlen($username < 16)) && preg_match('/^[A-Za-z0-9_]+$/', $username)) {
|
||||
header("Location:http://" . $_SERVER["HTTP_HOST"] . "/f/" . $username);
|
||||
die();
|
||||
header("HTTP/1.1 303 See Other");
|
||||
header("Location:http://" . $_SERVER["HTTP_HOST"] . "/f/" . strtolower($username));
|
||||
die();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user