diff options
| author | Sean Owen <srowen@gmail.com> | 2018-08-30 23:12:06 +0300 |
|---|---|---|
| committer | Sean Owen <srowen@gmail.com> | 2018-08-30 23:12:06 +0300 |
| commit | ab4ebad3051dcebde3327ab000916e197559dd00 (patch) | |
| tree | cef1e6d31b697c765091a376640387a73b5fc565 /zxingorg/src/main/java | |
| parent | 4fbcadfd37d5d48a184bc5b4f25afeb2b8e772f6 (diff) | |
| download | zxing-ab4ebad3051dcebde3327ab000916e197559dd00.tar.xz | |
Make sure to stop processing after all error conditions (errorResponse calls)
Diffstat (limited to 'zxingorg/src/main/java')
| -rw-r--r-- | zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java b/zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java index ea19be76b..87fce4dfb 100644 --- a/zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java +++ b/zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java @@ -185,6 +185,7 @@ public final class DecodeServlet extends HttpServlet { } catch (IOException | IllegalStateException e) { log.info("Error " + e + " while reading data URI: " + imageURIString); errorResponse(request, response, "badurl"); + return; } if (image == null) { log.info("Couldn't read data URI: " + imageURIString); @@ -218,6 +219,7 @@ public final class DecodeServlet extends HttpServlet { if (destHostTracker.isBanned(imageURL.getHost())) { log.info("Temporarily not requesting from host: " + imageURIString); errorResponse(request, response, "badurl"); + return; } HttpURLConnection connection; |
