OSDN Git Service
(root)
/
swfed
/
swfed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81a04d4
)
wrong compare for imagedata.
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Fri, 14 Sep 2012 05:56:11 +0000
(14:56 +0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Fri, 14 Sep 2012 05:56:11 +0000
(14:56 +0900)
www/swfimagereplace.php
patch
|
blob
|
history
diff --git
a/www/swfimagereplace.php
b/www/swfimagereplace.php
index
6071579
..
d062cc0
100644
(file)
--- a/
www/swfimagereplace.php
+++ b/
www/swfimagereplace.php
@@
-29,7
+29,7
@@
function detect_image_ext(&$imagedata) {
if (! empty($_FILES['imagefile']['tmp_name'])) {
$filename = $_FILES['imagefile']['tmp_name'];
$imagedata = file_get_contents($filename);
- if (
$imagedata
> $upload_max_filesize_bytes) {
+ if (
strlen($imagedata)
> $upload_max_filesize_bytes) {
echo " $upload_max_filesize Bytes 以内のファイルしか受け付けません。\n";
exit(0);
}