mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 18:59:56 +09:00
fixed #50, file_put_contents함수에 LOCK_EX flag 적
This commit is contained in:
parent
ab021d75c7
commit
71c8a0b99f
11 changed files with 14 additions and 14 deletions
|
|
@ -61,7 +61,7 @@ class HTMLPurifier_URIScheme_data extends HTMLPurifier_URIScheme {
|
|||
// XXX probably want to refactor this into a general mechanism
|
||||
// for filtering arbitrary content types
|
||||
$file = tempnam("/tmp", "");
|
||||
file_put_contents($file, $raw_data);
|
||||
file_put_contents($file, $raw_data, LOCK_EX);
|
||||
if (function_exists('exif_imagetype')) {
|
||||
$image_code = exif_imagetype($file);
|
||||
} elseif (function_exists('getimagesize')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue