[Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/file/image.py backported fix from r69624 in trunk

Bernd Dorn bernd.dorn at fhv.at
Wed Sep 27 03:28:50 EDT 2006


Log message for revision 70393:
  backported fix from r69624 in trunk

Changed:
  U   Zope3/branches/3.3/src/zope/app/file/image.py

-=-
Modified: Zope3/branches/3.3/src/zope/app/file/image.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/file/image.py	2006-09-26 18:17:11 UTC (rev 70392)
+++ Zope3/branches/3.3/src/zope/app/file/image.py	2006-09-27 07:28:49 UTC (rev 70393)
@@ -133,6 +133,8 @@
         jpeg.read(2)
         b = jpeg.read(1)
         try:
+            w = -1
+            h = -1
             while (b and ord(b) != 0xDA):
                 while (ord(b) != 0xFF): b = jpeg.read(1)
                 while (ord(b) == 0xFF): b = jpeg.read(1)
@@ -150,4 +152,5 @@
         except ValueError:
             pass
 
+
     return content_type, width, height



More information about the Zope3-Checkins mailing list