forked from Cavemanon/cavepaintings
dedupe some referer handling
This commit is contained in:
@@ -116,3 +116,8 @@ function make_http(string $link): string
|
||||
|
||||
return $link;
|
||||
}
|
||||
|
||||
function referer_or(string $dest): string
|
||||
{
|
||||
return $_SERVER['HTTP_REFERER'] ?? $dest;
|
||||
}
|
||||
|
Reference in New Issue
Block a user