Skip to content

Commit

Permalink
Applying patch for CVE-2015-5723
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 31, 2015
1 parent 1edd75a commit 4824569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/Common/Proxy/ProxyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ public function generateProxyClass(ClassMetadata $class, $fileName = false)
$tmpFileName = $fileName . '.' . uniqid('', true);

file_put_contents($tmpFileName, $proxyCode);
chmod($tmpFileName, 0664);
rename($tmpFileName, $fileName);
}

Expand Down

0 comments on commit 4824569

Please sign in to comment.