Merge pull request #2252 from julceslauhub/master

Validating if exists 'HTTP_USER_AGENT' key in $_SERVER array
This commit is contained in:
julceslauhub
2014-01-24 06:58:36 -08:00

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', '/' );