if (isGetRequestElementSet('access')) {
// Secure input and construct FQFN
- $access = SQL_ESCAPE(getRequestElement('access'));
+ $access = sqlEscapeString(getRequestElement('access'));
$target = sprintf("%slogs/%s", getPath(), $access);
// Is the file valid and readable?