in lib.php [280:282]
protected function path_is_upload($path) { return (substr($path, -strlen('/upload/')) === '/upload/') ? true : false; }