SOURCES: coppermine-gallery-pld.patch - create user subdirectories...
gotar
gotar at pld-linux.org
Tue Nov 13 00:42:23 CET 2007
Author: gotar Date: Mon Nov 12 23:42:23 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- create user subdirectories and upload files with more restrictive modes
---- Files affected:
SOURCES:
coppermine-gallery-pld.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/coppermine-gallery-pld.patch
diff -u SOURCES/coppermine-gallery-pld.patch:1.3 SOURCES/coppermine-gallery-pld.patch:1.4
--- SOURCES/coppermine-gallery-pld.patch:1.3 Tue Nov 13 00:00:27 2007
+++ SOURCES/coppermine-gallery-pld.patch Tue Nov 13 00:42:17 2007
@@ -35,6 +35,17 @@
</td>
</tr>
<tr>
+@@ -472,8 +472,8 @@
+ $sql_query .= "REPLACE INTO CPG_config VALUES ('gallery_admin_email', '{$_POST['admin_email']}');\n";
+ // Test write permissions for main dir
+ if (!is_writable('.')) {
+- $sql_query .= "REPLACE INTO CPG_config VALUES ('default_dir_mode', '0777');\n";
+- $sql_query .= "REPLACE INTO CPG_config VALUES ('default_file_mode', '0666');\n";
++ $sql_query .= "REPLACE INTO CPG_config VALUES ('default_dir_mode', '0300');\n";
++ $sql_query .= "REPLACE INTO CPG_config VALUES ('default_file_mode', '0600');\n";
+ }
+ // Update table prefix
+ $sql_query = preg_replace('/CPG_/', $_POST['table_prefix'], $sql_query);
@@ -536,10 +536,12 @@
set_magic_quotes_runtime(0);
// The defaults values
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/coppermine-gallery-pld.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list