add support for 'g' in ini file filesizes (Bug #7956)
authorChuck Hagenbuch <chuck@horde.org>
Sat, 14 Feb 2009 20:31:21 +0000 (15:31 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 14 Feb 2009 20:31:21 +0000 (15:31 -0500)
framework/Browser/lib/Horde/Browser.php

index d4c1193..c446995 100644 (file)
@@ -980,6 +980,10 @@ class Horde_Browser
                 $filesize = intval(floatval($filesize) * 1024 * 1024);
                 break;
 
+            case 'g':
+                $filesize = intval(floatval($filesize) * 1024 * 1024 * 1024);
+                break;
+
             default:
                 $filesize = intval($filesize);
                 break;
@@ -994,6 +998,10 @@ class Horde_Browser
                 $postsize = intval(floatval($postsize) * 1024 * 1024);
                 break;
 
+            case 'g':
+                $postsize = intval(floatval($postsize) * 1024 * 1024 * 1024);
+                break;
+
             default:
                 $postsize = intval($postsize);
                 break;