[Swfed-svn] swfed-svn [99] swf の id と image の id をごっちゃにしてたので修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 1月 18日 (日) 14:18:37 JST


Revision: 99
          http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=99
Author:   yoya
Date:     2009-01-18 14:18:37 +0900 (Sun, 18 Jan 2009)

Log Message:
-----------
swf の id と image の id をごっちゃにしてたので修正

Modified Paths:
--------------
    trunk/www/swfimagereplace.php


-------------- next part --------------
Modified: trunk/www/swfimagereplace.php
===================================================================
--- trunk/www/swfimagereplace.php	2009-01-18 04:46:58 UTC (rev 98)
+++ trunk/www/swfimagereplace.php	2009-01-18 05:18:37 UTC (rev 99)
@@ -14,7 +14,7 @@
     $image_id = $_REQUEST['image_id'];
     $ext = $_REQUEST['ext'];
     $id_image = substr($tmp_name, 0, 16); // XXX
-    $tmp_filename = "$tmp_prefix$id$ext";
+    $tmp_filename = "$tmp_prefix$id_image$ext";
     if ((! is_readable($tmp_filename)) &&
         (! file_put_contents($tmp_filename, $imagedata))) {
         fprintf(stderr, "swfimagereplace.php: file_put_contents failed. zero size?\n");
@@ -49,13 +49,14 @@
    }
    $id = $_REQUEST['id'];
    $image_id = $_REQUEST['image_id'];
+   $id_image = $_REQUEST['id_image'];
    $ext = $_REQUEST['ext'];
    if (($ext != '.png') && ($ext != '.jpg')) {
       exit(1);
    }
    $swf_filename = "$tmp_prefix$id.swf";
    $swfdata = file_get_contents($swf_filename);
-   $image_filename = "$tmp_prefix$id$ext";
+   $image_filename = "$tmp_prefix$id_image$ext";
    $imagedata = file_get_contents($image_filename);
 }
 


Swfed-svn メーリングリストの案内
Back to archive index