mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2026-04-06 16:34:18 +02:00
Compare commits
7 Commits
v2.6.0
...
v2.6.0-fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
286e45bafe | ||
|
|
aa1bb470e6 | ||
|
|
3be9adde4b | ||
|
|
41d97abd08 | ||
|
|
6bc232c9b4 | ||
|
|
d4a0be92ae | ||
|
|
75bf41fba1 |
@@ -344,10 +344,9 @@ steps:
|
||||
from_secret: DEBIAN_SECRET_IV
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- stable-2.6
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
- tag
|
||||
---
|
||||
kind: pipeline
|
||||
name: Documentation
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
set( MIRALL_VERSION_MAJOR 2 )
|
||||
set( MIRALL_VERSION_MINOR 5 )
|
||||
set( MIRALL_VERSION_PATCH 3 )
|
||||
set( MIRALL_VERSION_MINOR 6 )
|
||||
set( MIRALL_VERSION_PATCH 0 )
|
||||
set( MIRALL_VERSION_YEAR 2019 )
|
||||
set( MIRALL_SOVERSION 0 )
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ Build-Depends: cmake,
|
||||
cdbs,
|
||||
dh-python,
|
||||
extra-cmake-modules (>= 5.16),
|
||||
kdelibs5-dev,
|
||||
libkf5kio-dev,
|
||||
libcmocka-dev,
|
||||
libhttp-dav-perl,
|
||||
|
||||
@@ -466,7 +466,41 @@ void OwncloudSetupWizard::slotCreateLocalAndRemoteFolders(const QString &localFo
|
||||
_ocWizard->appendToConfigurationLog(res);
|
||||
}
|
||||
if (nextStep) {
|
||||
EntityExistsJob *job = new EntityExistsJob(_ocWizard->account(), _ocWizard->account()->davPath() + remoteFolder, this);
|
||||
/*
|
||||
* BEGIN - Sanitize URL paths to eliminate double-slashes
|
||||
*
|
||||
* Purpose: Don't rely on unsafe paths, be extra careful.
|
||||
*
|
||||
* Example: https://cloud.example.com/remote.php/webdav//
|
||||
*
|
||||
*/
|
||||
qCInfo(lcWizard) << "Sanitize got URL path:" << QString(_ocWizard->account()->url().toString() + '/' + _ocWizard->account()->davPath() + remoteFolder);
|
||||
|
||||
QString newDavPath = _ocWizard->account()->davPath(),
|
||||
newRemoteFolder = remoteFolder;
|
||||
|
||||
while (newDavPath.startsWith('/')) {
|
||||
newDavPath.remove(0, 1);
|
||||
}
|
||||
while (newDavPath.endsWith('/')) {
|
||||
newDavPath.chop(1);
|
||||
}
|
||||
|
||||
while (newRemoteFolder.startsWith('/')) {
|
||||
newRemoteFolder.remove(0, 1);
|
||||
}
|
||||
while (newRemoteFolder.endsWith('/')) {
|
||||
newRemoteFolder.chop(1);
|
||||
}
|
||||
|
||||
QString newUrlPath = newDavPath + '/' + newRemoteFolder;
|
||||
|
||||
qCInfo(lcWizard) << "Sanitized to URL path:" << _ocWizard->account()->url().toString() + '/' + newUrlPath;
|
||||
/*
|
||||
* END - Sanitize URL paths to eliminate double-slashes
|
||||
*/
|
||||
|
||||
EntityExistsJob *job = new EntityExistsJob(_ocWizard->account(), newUrlPath, this);
|
||||
connect(job, &EntityExistsJob::exists, this, &OwncloudSetupWizard::slotRemoteFolderExists);
|
||||
job->start();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user