Index: modules/upload/upload.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/upload/upload.module,v
retrieving revision 1.264
diff -u -p -r1.264 upload.module
--- modules/upload/upload.module	13 Oct 2009 21:16:44 -0000	1.264
+++ modules/upload/upload.module	19 Oct 2009 17:39:43 -0000
@@ -565,11 +565,13 @@ function _upload_form($node) {
 
     $limit_description = t('The maximum size of file uploads is %filesize.', array('%filesize' => format_size($limits['file_size']))) . ' ';
     if (!empty($limits['resolution'])) {
-      if (image_get_toolkit()) {
-        $limit_description .= t('Images larger than %resolution will be resized.', array('%resolution' => $limits['resolution'])) . ' ';
-      }
-      else {
-        $limit_description .= t('Images may not be larger than %resolution.', array('%resolution' => $limits['resolution'])) . ' ';
+      if ($limits['resolution'] != '0x0') {
+        if (image_get_toolkit()) {
+          $limit_description .= t('Images larger than %resolution will be resized.', array('%resolution' => $limits['resolution'])) . ' ';
+        }
+        else {
+          $limit_description .= t('Images may not be larger than %resolution.', array('%resolution' => $limits['resolution'])) . ' ';
+        }
       }
     }
     $limit_description .= t('Only files with the following extensions may be uploaded: %extensions.', array('%extensions' => $limits['extensions'])) . ' ';
Index: includes/file.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/file.inc,v
retrieving revision 1.197
diff -u -p -r1.197 file.inc
--- includes/file.inc	18 Oct 2009 18:36:24 -0000	1.197
+++ includes/file.inc	19 Oct 2009 17:39:44 -0000
@@ -1386,6 +1386,7 @@ function file_validate_image_resolution(
   // Check first that the file is an image.
   if ($info = image_get_info($file->uri)) {
     if ($maximum_dimensions) {
+    if ($maximum_dimensions != '0x0') {
       // Check that it is smaller than the given dimensions.
       list($width, $height) = explode('x', $maximum_dimensions);
       if ($info['width'] > $width || $info['height'] > $height) {
@@ -1401,6 +1402,7 @@ function file_validate_image_resolution(
         }
       }
     }
+  }
 
     if ($minimum_dimensions) {
       // Check that it is larger than the given dimensions.
