From d40adc7553bc900328afa918f45b6d9e9c3087fb Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 24 Oct 2011 08:20:35 -0400 Subject: [PATCH] Fixed security hole when cloning repository with TortoiseGit (issue 28) --- tests/com/gitblit/tests/ByteFormatTest.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/com/gitblit/tests/ByteFormatTest.java b/tests/com/gitblit/tests/ByteFormatTest.java index e969c4d..43fee35 100644 --- a/tests/com/gitblit/tests/ByteFormatTest.java +++ b/tests/com/gitblit/tests/ByteFormatTest.java @@ -24,10 +24,10 @@ public void testByteFormat() throws Exception { ByteFormat format = new ByteFormat(); assertTrue(format.format(10).equals("10 b")); - assertTrue(format.format(1024*10).equals("10.0 KB")); - assertTrue(format.format(1024*1000).equals("1,000.0 KB")); - assertTrue(format.format(2*1024*1000).equals("2.0 MB")); - assertTrue(format.format(1024*1024*1000).equals("1,000.0 MB")); - assertTrue(format.format(2*1024*1024*1000).equals("2.0 GB")); + assertTrue(format.format(1024 * 10).equals("10 KB")); + assertTrue(format.format(1024 * 1000).equals("1,000 KB")); + assertTrue(format.format(2 * 1024 * 1000).equals("2.0 MB")); + assertTrue(format.format(1024 * 1024 * 1000).equals("1,000.0 MB")); + assertTrue(format.format(2 * 1024 * 1024 * 1000).equals("2.0 GB")); } } -- Gitblit v1.9.1