You are here

public static function Server::in_referer in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 9.1.x src/lib/Cleantalk/Common/Variables/Server.php \Cleantalk\Common\Variables\Server::in_referer()

* Checks if $_SERVER['REQUEST_URI'] contains string * *

Parameters

string $needle needle: * * @return bool

File

src/lib/Cleantalk/Common/Variables/Server.php, line 85

Class

Server
Class Server Wrapper to safely get $_SERVER variables

Namespace

Cleantalk\Common\Variables

Code

public static function in_referer($needle) {
  return self::has_string('HTTP_REFERER', $needle);
}