Skip to content

Commit f98ca71

Browse files
committed
Audit fix and minor fix to prevent sharing page crash
1 parent 5b2599c commit f98ca71

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

lib/requests/sharing-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SharingRequest extends AuthRequest {
7373
// Check if is already registered or is data browser or the webId is not on this machine
7474
if (request.isUserLoggedIn()) {
7575
if (
76-
!this.isSubdomain(serverUrl.host, new url.URL(request.session.subject._id).host) ||
76+
!request.isSubdomain(serverUrl.host, new url.URL(request.session.subject._id).host) ||
7777
(appUrl && request.isSubdomain(serverUrl.host, appUrl.host) && appUrl.protocol === serverUrl.protocol) ||
7878
await request.isAppRegistered(req.app.locals.ldp, appOrigin, request.session.subject._id)
7979
) {

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"ip-range-check": "0.0.2",
8484
"is-ip": "^2.0.0",
8585
"li": "^1.0.1",
86-
"mashlib": "^0.7.19",
86+
"mashlib": "0.7.18",
8787
"mime-types": "^2.1.11",
8888
"mkdir-recursive": "^0.4.0",
8989
"negotiator": "^0.6.0",

0 commit comments

Comments
 (0)