summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-17 22:05:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-17 22:05:22 +0000
commit755913e0b7fc552126b3cf2d5074b911f24f996b (patch)
tree0b7ba3fa4aa81fd7d01a28873bb04aac4efe73e5 /includes/stream_wrappers.inc
parent16c888a917c889faf6d29fa6162201c9c8810f2f (diff)
downloadbrdo-755913e0b7fc552126b3cf2d5074b911f24f996b.tar.gz
brdo-755913e0b7fc552126b3cf2d5074b911f24f996b.tar.bz2
- Patch #443286 by c960657, Damien Tournoud, drifter, webkenny, scor: international characters break file handling.
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r--includes/stream_wrappers.inc6
1 files changed, 3 insertions, 3 deletions
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());
}
}