diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-05-20 17:54:45 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-16 00:02:01 +0200 |
commit | 1ae68047eaa0662d4e57501bf84a57d5b28c3894 (patch) | |
tree | 19442f4c64282f32bf919ee3df8883cb6ac621d8 /apps/files_external/lib/config.php | |
parent | 685f00c0181c5bbf0c77e61273c85266c8ea1eea (diff) | |
download | nextcloud-server-1ae68047eaa0662d4e57501bf84a57d5b28c3894.tar.gz nextcloud-server-1ae68047eaa0662d4e57501bf84a57d5b28c3894.zip |
Allow hidden smb shares
A hidden smb share ends with $. This patch changes the placeholder
detection to allow shares with $ at the end.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r-- | apps/files_external/lib/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 47e68b4b1a0..2f0cbaca790 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -292,7 +292,7 @@ class OC_Mount_Config { } } } else if (is_string($option)) { - if (strpos($option, '$') !== false) { + if (strpos(rtrim($option, '$'), '$') !== false) { $result = false; } } |