From b631544ccb22ccdc0b3cdaa1b514b9dfb9930f40 Mon Sep 17 00:00:00 2001 From: yate Date: Wed, 17 Dec 2014 00:17:35 -0500 Subject: [PATCH] don't repeat words since a one word captcha is now possible --- .../com/chanapps/four/activity/PostReplyActivity.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/src/com/chanapps/four/activity/PostReplyActivity.java b/app/src/com/chanapps/four/activity/PostReplyActivity.java index c4c175f4..ac61df4c 100644 --- a/app/src/com/chanapps/four/activity/PostReplyActivity.java +++ b/app/src/com/chanapps/four/activity/PostReplyActivity.java @@ -900,7 +900,7 @@ protected void validateAndSendReply() { if (validMsg != null) { Toast.makeText(getApplicationContext(), validMsg, Toast.LENGTH_SHORT).show(); } else { - AsyncTask getCaptchaRespone = new AsyncTask() { + AsyncTask getCaptchaResponse = new AsyncTask() { @Override protected Boolean doInBackground(Context... params) { @@ -967,7 +967,7 @@ protected void onPostExecute(Boolean result) { } } }; - getCaptchaRespone.execute(this); + getCaptchaResponse.execute(this); } } @@ -1062,10 +1062,7 @@ public String getRecaptchaChallenge() { } public String getRecaptchaResponse() { - String t = recaptchaText.getText().toString(); - if (t.indexOf(" ") == -1) // autodoubling for quick entry - t = t + " " + t; - return t; + return recaptchaText.getText().toString(); } private String validatePost() {