Skip to content

Commit 6149856

Browse files
Merge pull request #61699 from nextcloud/dependanickv/stable32/composer-audit-fixes
[stable32] build(deps): Composer audit updates
2 parents f4f497d + fc66594 commit 6149856

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

3rdparty

Submodule 3rdparty updated 100 files

build/integration/features/bootstrap/FilesDropContext.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function droppingFileWith($path, $content, $nickname = null) {
2525
$token = $this->lastShareData->data[0]->token;
2626
}
2727

28-
$base = substr($this->baseUrl, 0, -4);
29-
$fullUrl = str_replace('//', '/', $base . "/public.php/dav/files/$token/$path");
28+
$base = rtrim(substr($this->baseUrl, 0, -4), '/');
29+
$fullUrl = $base . str_replace('//', '/', "/public.php/dav/files/$token/$path");
3030

3131
$options['headers'] = [
3232
'X-REQUESTED-WITH' => 'XMLHttpRequest',
@@ -66,8 +66,8 @@ public function creatingFolderInDrop($folder, $nickname = null) {
6666
$token = $this->lastShareData->data[0]->token;
6767
}
6868

69-
$base = substr($this->baseUrl, 0, -4);
70-
$fullUrl = str_replace('//', '/', $base . "/public.php/dav/files/$token/$folder");
69+
$base = rtrim(substr($this->baseUrl, 0, -4), '/');
70+
$fullUrl = $base . str_replace('//', '/', "/public.php/dav/files/$token/$folder");
7171

7272
$options['headers'] = [
7373
'X-REQUESTED-WITH' => 'XMLHttpRequest',

0 commit comments

Comments
 (0)