We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e0398 commit c022ac9Copy full SHA for c022ac9
1 file changed
lib/Routes/SolidStorageProvider.php
@@ -11,15 +11,12 @@ public static function respondToStorageNew() {
11
$webId = StorageServer::getWebId($rawRequest);
12
13
if (!isset($webId) || $webId === "public") {
14
- $webId = $_POST['webId'];
15
- // FIXME: Check against a trusted remote party;
16
- }
17
-
18
- if (!isset($webId)) {
19
header("HTTP/1.1 400 Bad Request");
20
exit();
21
}
22
+ // FIXME: Get the webID issuer and validate that we allow storage creation for that issuer
+
23
$createdStorage = StorageServer::createStorage($webId);
24
if (!$createdStorage) {
25
error_log("Failed to create storage");
0 commit comments