Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DC0E4166989 for ; Tue, 25 Jul 2017 13:43:18 +0200 (CEST) Received: (qmail 22830 invoked by uid 500); 25 Jul 2017 11:43:18 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 22817 invoked by uid 99); 25 Jul 2017 11:43:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 11:43:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A0696DFF8A; Tue, 25 Jul 2017 11:43:17 +0000 (UTC) From: lukaszlenart To: dev@struts.apache.org Reply-To: dev@struts.apache.org References: In-Reply-To: Subject: [GitHub] struts pull request #151: WW-4818 change default Multipart validation regex ... Content-Type: text/plain Message-Id: <20170725114317.A0696DFF8A@git1-us-west.apache.org> Date: Tue, 25 Jul 2017 11:43:17 +0000 (UTC) Github user lukaszlenart commented on a diff in the pull request: https://github.com/apache/struts/pull/151#discussion_r129281026 --- Diff: core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java --- @@ -88,7 +88,7 @@ */ public static final String REQUEST_POST_METHOD = "POST"; - public static final String MULTIPART_FORM_DATA_REGEX = "^multipart\\/form-data(; boundary=[\\-a-zA-Z0-9]{1,70})?"; + public static final String MULTIPART_FORM_DATA_REGEX = "^multipart/form-data(; boundary=[0-9a-zA-Z'()+_,\\-./:=?]{1,70})?"; --- End diff -- Also `-` has to be escaped as it is treated as a group separator --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org