function _maliciousFilename($file)
    {
        if (strpos($file, '/../') !== false) {
            return true;
        }
        if (strpos($file, '../') === 0) {
            return true;
        }
        return false;
    }
function _maliciousFilename($file)
    {
        if (strpos($file, '/../') !== false) {
            return true;
        }
        if (strpos($file, '../') === 0) {
            return true;
        }
        return false;
    }
function _maliciousFilename ( $ file ) { if ( strpos ( $ file , '/../' ) !== false ) { return true ; } if ( strpos ( $ file , '../' ) === 0 ) { return true ; } return false ; }
Detect and report a malicious file name

@param string $file

@return bool
@access private
Detect and report a malicious file name