Index: branches/wheeljack/lib/MT/App/CMS.pm
===================================================================
--- branches/wheeljack/lib/MT/App/CMS.pm (revision 986)
+++ branches/wheeljack/lib/MT/App/CMS.pm (revision 987)
@@ -10911,5 +10911,5 @@
 
     my $size = $q->param('size_limit') || 0;
-    return $app->errtrans('[_1] is not a number.', $size)
+    return $app->errtrans('[_1] is not a number.', MT::Util::encode_html($size))
         if $size !~ /^\d+$/;
 
@@ -11272,5 +11272,5 @@
                     $result = 0;
                     $error = $e;
-                    $app->print($app->translate("Uploaded file was invalid. $1"));
+                    $app->print($app->translate("Uploaded file was invalid: [_1]", $e));
                 } else {
                     for my $file ($tar->list_files) {
