summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-23 07:38:23 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-23 07:38:23 +0200
commit37a5bff1552ce672abfb15ffc0ba0c2468fdd058 (patch)
tree2d7999e3ed61806c3a54ba7253f91d4f49ae3c8e /lib
parentb3f1216ae0d43e228c8374453fc3aa1fe5e585b3 (diff)
parent59a5df6a4bb81b0350090fc5f28677d239910379 (diff)
downloadnextcloud-server-37a5bff1552ce672abfb15ffc0ba0c2468fdd058.tar.gz
nextcloud-server-37a5bff1552ce672abfb15ffc0ba0c2468fdd058.zip
Merge pull request #11227 from owncloud/fix-windows-path
fixing directory seperators
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index f696b5a8900..1297d356d09 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -630,10 +630,10 @@ class OC_Helper {
* temporary files are automatically cleaned up after the script is finished
*/
public static function tmpFolder() {
- $path = get_temp_dir() . '/' . md5(time() . rand());
+ $path = get_temp_dir() . DIRECTORY_SEPARATOR . md5(time() . rand());
mkdir($path);
self::$tmpFiles[] = $path;
- return $path . '/';
+ return $path . DIRECTORY_SEPARATOR;
}
/**