Skip to content

Commit 4ba6b2b

Browse files
committed
use lockToPath instead
1 parent 7eeadf9 commit 4ba6b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Routes/SolidUserProfile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ class SolidUserProfile {
1414
public static function respondToProfile() {
1515
$requestFactory = new ServerRequestFactory();
1616
$serverData = $_SERVER;
17-
$serverData['REQUEST_URI'] = "/profile.ttl"; // Hardcoded so we can only ever return profile.ttl
1817

19-
$rawRequest = $requestFactory->fromGlobals($serverData, $_GET, $_POST, $_COOKIE, $_FILES);
18+
$rawRequest = $requestFactory->fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
2019
ProfileServer::initializeProfile();
2120
$filesystem = ProfileServer::getFileSystem();
2221

@@ -28,6 +27,7 @@ public static function respondToProfile() {
2827

2928
$baseUrl = Util::getServerBaseUrl();
3029
$resourceServer->setBaseUrl($baseUrl);
30+
$resourceServer->lockToPath("/profile.ttl");
3131
$wac->setBaseUrl($baseUrl);
3232

3333
// use the original $_SERVER without modified path, otherwise the htu check for DPOP will fail

0 commit comments

Comments
 (0)