Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 3rdparty
Submodule 3rdparty updated 100 files
8 changes: 4 additions & 4 deletions build/integration/features/bootstrap/FilesDropContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function droppingFileWith($path, $content, $nickname = null) {
$token = $this->lastShareData->data[0]->token;
}

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

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

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

$options['headers'] = [
'X-REQUESTED-WITH' => 'XMLHttpRequest',
Expand Down
Loading