bug #20137 Add "more entropy" to every uniqid() call (javiereguiluz)
This PR was merged into the 3.2-dev branch.
Discussion
----------
Add "more entropy" to every uniqid() call
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Same as #20132 but for the master branch
Commits
-------
50a8c1f
Add "more entropy" to every uniqid() call
This commit is contained in:
commit
8c4ed1b8cf
@ -147,7 +147,7 @@ EOF;
|
||||
$dump .= "\n);\n";
|
||||
$dump = str_replace("' . \"\\0\" . '", "\0", $dump);
|
||||
|
||||
$tmpFile = uniqid($this->file);
|
||||
$tmpFile = uniqid($this->file, true);
|
||||
|
||||
file_put_contents($tmpFile, $dump);
|
||||
@chmod($tmpFile, 0666);
|
||||
|
Reference in New Issue
Block a user