We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 200ba21 commit 0efe00dCopy full SHA for 0efe00d
library/helpers/extractStringsFromUserInput.ts
@@ -31,6 +31,14 @@ export function extractStringsFromUserInput(obj: unknown): Set<UserString> {
31
if (typeof obj == "string") {
32
results.add(obj);
33
34
+ if (obj.includes("%")) {
35
+ try {
36
+ results.add(decodeURIComponent(obj));
37
+ } catch {
38
+ // Ignore
39
+ }
40
41
+
42
const jwt = tryDecodeAsJWT(obj);
43
if (jwt.jwt) {
44
// Do not add the issuer of the JWT as a string because it can contain a domain / url and produce false positives
0 commit comments