commit | 8a52791ee8387e6f5cac570088ee18183900741b | [log] [tgz] |
---|---|---|
author | Derek Jones <derek.jones@ellislab.com> | Thu Sep 24 14:25:39 2009 +0000 |
committer | Derek Jones <derek.jones@ellislab.com> | Thu Sep 24 14:25:39 2009 +0000 |
tree | 84ad5394fac6ade7ddbafde3e885aec4a0927e27 | |
parent | f3c4f277a7d0dfcddcfb4656f439b660a7398831 [diff] [blame] |
increased randomness of file name used in is_really_writable()
diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php index eb9dce6..73ff019 100644 --- a/system/codeigniter/Common.php +++ b/system/codeigniter/Common.php
@@ -62,7 +62,7 @@ // write a file then read it. Bah... if (is_dir($file)) { - $file = rtrim($file, '/').'/'.md5(rand(1,100)); + $file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100)); if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) {