src/Library.php
protected function validateFolder($exposeFolder)
    {
        if (strstr($exposeFolder, '.')) {
            return false;
        }
        if (strpos($exposeFolder, '/') === 0) {
            return false;
        }
        if (strpos($exposeFolder, '\\') === 0) {
            return false;
        }
        return true;
    }
protected function validateFolder($exposeFolder)
    {
        if (strstr($exposeFolder, '.')) {
            return false;
        }
        if (strpos($exposeFolder, '/') === 0) {
            return false;
        }
        if (strpos($exposeFolder, '\\') === 0) {
            return false;
        }
        return true;
    }
protected function validateFolder ( $ exposeFolder ) { if ( strstr ( $ exposeFolder , '.' ) ) { return false ; } if ( strpos ( $ exposeFolder , '/' ) === 0 ) { return false ; } if ( strpos ( $ exposeFolder , '\\' ) === 0 ) { return false ; } return true ; }
Validate the given folder is allowed

@param string $exposeFolder Relative folder name to check
@return bool
Validate the given folder is allowed