From 62d328525a264015ba1f7035aed2e75de69f5cdd Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Thu, 20 Aug 2015 00:37:15 +0100 Subject: setUserVars() should only attempt substitution with strings --- apps/files_external/lib/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/files_external/lib/config.php') diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 390f51bfa71..2a523144f7f 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -231,7 +231,9 @@ class OC_Mount_Config { } } } else { - $input = str_replace('$user', $user, $input); + if (is_string($input)) { + $input = str_replace('$user', $user, $input); + } } return $input; } -- cgit v1.2.3