From 755913e0b7fc552126b3cf2d5074b911f24f996b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 17 Aug 2010 22:05:22 +0000 Subject: - Patch #443286 by c960657, Damien Tournoud, drifter, webkenny, scor: international characters break file handling. --- includes/stream_wrappers.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/stream_wrappers.inc') diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index a78374c96..f49d3bc29 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -539,7 +539,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface */ public function unlink($uri) { $this->uri = $uri; - return unlink($this->getLocalPath()); + return drupal_unlink($this->getLocalPath()); } /** @@ -636,10 +636,10 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface public function rmdir($uri, $options) { $this->uri = $uri; if ($options & STREAM_REPORT_ERRORS) { - return rmdir($this->getLocalPath()); + return drupal_rmdir($this->getLocalPath()); } else { - return @rmdir($this->getLocalPath()); + return @drupal_rmdir($this->getLocalPath()); } } -- cgit v1.2.3