Skip to content

Commit 85df47f

Browse files
committed
Use component argument for parsing url path
PHPBB-1234
1 parent 5649b81 commit 85df47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/manifest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function handle(): JsonResponse
4444
{
4545
// Get the board URL and extract the path component
4646
$board_url = generate_board_url();
47-
$board_path = $this->config['force_server_vars'] ? $this->config['script_path'] : (parse_url($board_url)['path'] ?? '');
47+
$board_path = $this->config['force_server_vars'] ? $this->config['script_path'] : (parse_url($board_url, PHP_URL_PATH) ?? '');
4848

4949
// Ensure path ends with '/' for PWA scope
5050
$scope = rtrim($board_path, '/\\') . '/';

0 commit comments

Comments
 (0)