Skip to content

Commit b889edb

Browse files
committed
- Ported changes from Apache plugin to nginx plugin.
- Fixed errors in system.inc.php-
1 parent 317b4d0 commit b889edb

File tree

2 files changed

+209
-48
lines changed

2 files changed

+209
-48
lines changed

server/lib/classes/system.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ function file_get_contents($filename, $allow_symlink = false) {
673673
$app->log("Action aborted, file is a symlink: $filename",LOGLEVEL_WARN);
674674
return false;
675675
}
676-
return file_put_contents($filename, $data);
676+
return file_get_contents($filename, $data);
677677
}
678678

679679
function rename($filename, $new_filename, $allow_symlink = false) {
@@ -700,7 +700,7 @@ function mkdir($dirname, $allow_symlink = false) {
700700
}
701701

702702
function unlink($filename) {
703-
if(file_exists($filename)) {
703+
if(file_exists($filename) || is_link($filename)) {
704704
return unlink($filename);
705705
}
706706
}

0 commit comments

Comments
 (0)