Validating if exists 'HTTP_USER_AGENT' key in $_SERVER array

This commit is contained in:
Julio Cesar Laura
2014-01-24 10:56:41 -04:00
parent 02bb9e3e0f
commit 41a27f4d4c

View File

@@ -73,6 +73,11 @@ function transactionLog($transactionName){
}
}
// Validating if exists 'HTTP_USER_AGENT' key in $_SERVER array
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
$_SERVER['HTTP_USER_AGENT'] = '';
}
// Defining the PATH_SEP constant, he we are defining if the the path separator symbol will be '\\' or '/'
define( 'PATH_SEP', '/' );