- strpos( $templateName, '.' ) !== false &&
- (
- $templateName === '.' || $templateName === '..' ||
- strpos( $templateName, './' ) === 0 ||
- strpos( $templateName, '../' ) === 0 ||
- strpos( $templateName, '/./' ) !== false ||
- strpos( $templateName, '/../' ) !== false ||
- substr( $templateName, -2 ) === '/.' ||
- substr( $templateName, -3 ) === '/..'
- )