Skip to content

Commit 56020d1

Browse files
committed
Changed the location of slug decoding
1 parent daac7f7 commit 56020d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/acl-checker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ACLChecker {
5555
resource = rdf.sym(this.resource.substring(0, this.resource.length - this.suffix.length))
5656
}
5757
// If the slug is an acl, reject
58-
if (this.isAcl(decodeURIComponent(this.slug))) {
58+
if (this.isAcl(this.slug)) {
5959
this.aclCached[cacheKey] = Promise.resolve(false)
6060
return this.aclCached[cacheKey]
6161
}
@@ -174,7 +174,7 @@ class ACLChecker {
174174
suffix: ldp.suffixAcl,
175175
strictOrigin: ldp.strictOrigin,
176176
trustedOrigins,
177-
slug: req.headers['slug']
177+
slug: decodeURIComponent(req.headers['slug'])
178178
})
179179
}
180180
}

0 commit comments

Comments
 (0)