export function isPathProtectedByPrefixes(pathname: string, prefixes: readonly string[]): boolean { const canonical = canonicalizePathForSecurity(pathname); const normalizedPrefixes = getNormalizedPrefixes(prefixes); if (
canonical.candidates.some((candidate) =>
normalizedPrefixes.some((prefix) => prefixMatch(candidate, prefix)),
)
) { returntrue;
} // Fail closed when canonicalization depth cannot be fully resolved. if (canonical.decodePassLimitReached) { returntrue;
} if (!canonical.malformedEncoding) { returnfalse;
} return normalizedPrefixes.some((prefix) => prefixMatch(canonical.rawNormalizedPath, prefix));
}
export const PROTECTED_PLUGIN_ROUTE_PREFIXES = ["/api/channels"] as const;
export function isProtectedPluginRoutePath(pathname: string): boolean { return isPathProtectedByPrefixes(pathname, PROTECTED_PLUGIN_ROUTE_PREFIXES);
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.39Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-06)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.