Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17724
Modified Files:
Tag: branch-smarty
NEWS serendipity_admin_images.inc.php
Log Message:
fixed permission check for removing files/directories
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.214.2.24
retrieving revision 1.214.2.25
diff -u -d -r1.214.2.24 -r1.214.2.25
--- NEWS 27 Sep 2004 10:16:15 -0000 1.214.2.24
+++ NEWS 27 Sep 2004 10:24:38 -0000 1.214.2.25
@@ -29,6 +29,9 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Fixed file permission checks when removing images inside media
+ manager. Thanks to Thomas from the forums! (garvinhicking)
+
* RSS Import: New option 'full body only', so that imported RSS
contents can be forced to only show up in the full body. Fixed
buggy substr() logic which may cause nasty splitting from entry
Index: serendipity_admin_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_images.inc.php,v
retrieving revision 1.30
retrieving revision 1.30.2.1
diff -u -d -r1.30 -r1.30.2.1
--- serendipity_admin_images.inc.php 30 Aug 2004 18:56:19 -0000 1.30
+++ serendipity_admin_images.inc.php 27 Sep 2004 10:24:38 -0000 1.30.2.1
@@ -196,7 +196,7 @@
case 'delete':
$path = $serendipity['serendipityPath'] . $new_dir;
if (is_dir($path)) {
- if (!is_writable($serendipity['serendipityPath'])) {
+ if (!is_writable($serendipity['serendipityPath'] . $serendipity['uploadPath'])) {
printf(DIRECTORY_WRITE_ERROR, $new_dir);
} else {
// Directory exists and is writable. Now dive within subdirectories and kill 'em all.
|