1024 || preg_match('/[\x00-\x1F\x7F%?#\\\\\\\]/', $name)) { return false; } return preg_match('#^(?:[A-Za-z0-9_-]+/)*[A-Za-z0-9_-]+\.[A-Za-z0-9]+$#D', $name) === 1; } /** * 检查服务端脚本起始标签. */ private static function containsScript(string $content): bool { if (stripos($content, ' 0) { return true; } if (strpos($content, '<%') !== false) { return true; } return false; } }