}
// format request uri
- $requestURI = WCF::getSession()->requestURI;
+ $requestURI = UserUtil::getRequestURI();
// remove directories
$URIComponents = explode('/', $requestURI);
$requestURI = array_pop($URIComponents);
'ipAddress' => UserUtil::getIpAddress(),
'time' => TIME_NOW,
'requestURI' => $requestURI,
- 'requestMethod' => WCF::getSession()->requestMethod,
+ 'requestMethod' => substr($_SERVER['REQUEST_METHOD'] ?? '', 0, 255),
'className' => get_class($eventObj)
]);
}
ipAddress VARCHAR(39) NOT NULL DEFAULT '',
time INT(10) NOT NULL DEFAULT 0,
requestURI VARCHAR(255) NOT NULL DEFAULT '',
- requestMethod VARCHAR(7) NOT NULL DEFAULT '',
+ requestMethod VARCHAR(255) NOT NULL DEFAULT '',
className VARCHAR(255) NOT NULL DEFAULT '',
KEY sessionLogID (sessionLogID)
);