]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix malformed logging in exception
authorkdslkdsaldsal <kdslkdsaldsal@users.noreply.github.com>
Wed, 15 Feb 2017 08:50:36 +0000 (09:50 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 20 Mar 2017 04:56:35 +0000 (22:56 -0600)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/Files/View.php

index 6ffb5edff3e2afb3d886fc7f47d4aac3736ab773..67356fa63cf25d39e9ee7db9a3553c5ed47510b2 100644 (file)
@@ -2068,7 +2068,7 @@ class View {
                $parts = explode('/', trim($path, '/'), 3);
                // "$user", "files", "path/to/dir"
                if (!isset($parts[1]) || $parts[1] !== 'files') {
-                       throw new \InvalidArgumentException('$absolutePath must be relative to "files"');
+                       throw new \InvalidArgumentException('"' . $absolutePath . '" must be relative to "files"');
                }
                if (isset($parts[2])) {
                        return $parts[2];