Skip to content

Commit

Permalink
Merge pull request #488 from paulmillar/fix/2.6/ftp-fix-cksm
Browse files Browse the repository at this point in the history
ftp: fix CKSM command for files with white-space
  • Loading branch information
paulmillar committed Apr 7, 2014
2 parents 70c472d + 7c28c23 commit 69d722b
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -2235,15 +2235,15 @@ public void ac_cksm(String arg)
{
checkLoggedIn();

String[] st = arg.split("\\s+");
if (st.length != 4) {
List<String> st = Splitter.on(' ').limit(4).splitToList(arg);
if (st.size() != 4) {
reply("500 Unsupported CKSM command operands");
return;
}
String algo = st[0];
String offset = st[1];
String length = st[2];
String path = st[3];
String algo = st.get(0);
String offset = st.get(1);
String length = st.get(2);
String path = st.get(3);

long offsetL;
long lengthL;
Expand Down

0 comments on commit 69d722b

Please sign in to comment.