Skip to content

Commit

Permalink
Merge pull request #442 from yate/one-word-captcha-fix
Browse files Browse the repository at this point in the history
don't repeat words since a one word captcha is now possible
  • Loading branch information
johnarleyburns committed Dec 17, 2014
2 parents e2dcfde + b631544 commit 457823e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/src/com/chanapps/four/activity/PostReplyActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected void validateAndSendReply() {
if (validMsg != null) {
Toast.makeText(getApplicationContext(), validMsg, Toast.LENGTH_SHORT).show();
} else {
AsyncTask<Context, Void, Boolean> getCaptchaRespone = new AsyncTask<Context, Void, Boolean>() {
AsyncTask<Context, Void, Boolean> getCaptchaResponse = new AsyncTask<Context, Void, Boolean>() {

@Override
protected Boolean doInBackground(Context... params) {
Expand Down Expand Up @@ -967,7 +967,7 @@ protected void onPostExecute(Boolean result) {
}
}
};
getCaptchaRespone.execute(this);
getCaptchaResponse.execute(this);
}
}

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 457823e

Please sign in to comment.