projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated .gitattributes with export-ignore.
[fa-stable.git]
/
includes
/
main.inc
diff --git
a/includes/main.inc
b/includes/main.inc
index 8f2b3c33d56ea3912b97e3579d6b9488b45c9aa4..db1576bf50d748ad38b2b0bdd7b1b160dfcba57d 100644
(file)
--- a/
includes/main.inc
+++ b/
includes/main.inc
@@
-256,9
+256,9
@@
function check_write($path)
{
if ($path == ''//|| $path == '.' || $path == '..'
) return 0;
{
if ($path == ''//|| $path == '.' || $path == '..'
) return 0;
-
+
return is_writable($path) ? (is_dir($path) ? 1 : -1)
return is_writable($path) ? (is_dir($path) ? 1 : -1)
- : (is_file($path) ? 0 : ($path == '.' ? 0 : check_write(dirname($path))));
+ : (is_file($path) ? 0 : ($path == '.'
|| $path == '..'
? 0 : check_write(dirname($path))));
}
/*
}
/*
@@
-348,6
+348,7
@@
function find_custom_file($rep)
Changes all not POSIX compatible chars to underscore.
*/
function clean_file_name($filename) {
Changes all not POSIX compatible chars to underscore.
*/
function clean_file_name($filename) {
+ $filename = str_replace(chr(0), '', $filename);
return preg_replace('/[^a-zA-Z0-9.\-_]/', '_', $filename);
}
return preg_replace('/[^a-zA-Z0-9.\-_]/', '_', $filename);
}