From e0d75ec2e8b8f6875c7f33fd60d9df6732b89b38 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 1 Sep 2014 20:09:06 +0100 Subject: [PATCH] Fix dynamicResourcepath for windows systems (again) --- CRM/Utils/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 1b3d8a3735..579a7d0b38 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -716,7 +716,7 @@ HTACCESS; // FIXME: Use self::baseFilePath once url issue has been resolved // Windows PHP accepts any mix of "/" or "\"; simpler if we only deal with one of those $imageUploadDir = str_replace('\\', '/', $config->imageUploadDir); - $path = self::addTrailingSlash(str_replace('/persist/contribute', '', $imageUploadDir)) . 'dynamic'; + $path = self::addTrailingSlash(str_replace('/persist/contribute', '', $imageUploadDir), '/') . 'dynamic'; if ($fileName !== NULL) { $path .= "/$fileName"; } -- 2.25.1