Skip to content

Commit c022ac9

Browse files
committed
only allow webId
1 parent e8e0398 commit c022ac9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/Routes/SolidStorageProvider.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ public static function respondToStorageNew() {
1111
$webId = StorageServer::getWebId($rawRequest);
1212

1313
if (!isset($webId) || $webId === "public") {
14-
$webId = $_POST['webId'];
15-
// FIXME: Check against a trusted remote party;
16-
}
17-
18-
if (!isset($webId)) {
1914
header("HTTP/1.1 400 Bad Request");
2015
exit();
2116
}
2217

18+
// FIXME: Get the webID issuer and validate that we allow storage creation for that issuer
19+
2320
$createdStorage = StorageServer::createStorage($webId);
2421
if (!$createdStorage) {
2522
error_log("Failed to create storage");

0 commit comments

Comments
 (0)