diff options
Diffstat (limited to 'pdf-as-web/src/main')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java index 1c515efa..8a58d364 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java @@ -181,7 +181,13 @@ public class PdfAsParameterExtractor { } public static String getLocale(HttpServletRequest request) { - return (String)request.getAttribute(PARAM_LOCALE); + String locale = (String)request.getAttribute(PARAM_LOCALE); + if(locale != null) { + if ("DE".equalsIgnoreCase(locale) || "EN".equalsIgnoreCase(locale)) { + return locale; + } + } + return null; } public static String getNumBytes(HttpServletRequest request) { |