aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/Provisioning.php
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-09-18 18:32:59 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-09-18 18:34:30 +0200
commitc4c602ee80b3bd6a158274df12019ba4e41e31d0 (patch)
treebe27f4861292f574dab03c473ba77eee31c46883 /build/integration/features/bootstrap/Provisioning.php
parent5e143845cb6d9591d506df4b554348b7dce0296e (diff)
downloadnextcloud-server-c4c602ee80b3bd6a158274df12019ba4e41e31d0.tar.gz
nextcloud-server-c4c602ee80b3bd6a158274df12019ba4e41e31d0.zip
Add integration tests for transferring files of a user with a risky name
The files:transfer-ownership performs a sanitization of users with "risky" display names (including characters like "\" or "/"). In order to allow (escaped) double quotes in the display name the regular expression used in the "user XXX with displayname YYY exists" step had to be adjusted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/bootstrap/Provisioning.php')
-rw-r--r--build/integration/features/bootstrap/Provisioning.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php
index daf5b11569c..31331092ae7 100644
--- a/build/integration/features/bootstrap/Provisioning.php
+++ b/build/integration/features/bootstrap/Provisioning.php
@@ -70,7 +70,7 @@ trait Provisioning {
}
/**
- * @Given /^user "([^"]*)" with displayname "([^"]*)" exists$/
+ * @Given /^user "([^"]*)" with displayname "((?:[^"]|\\")*)" exists$/
* @param string $user
*/
public function assureUserWithDisplaynameExists($user, $displayname) {