Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 78282 invoked from network); 29 Nov 2010 17:08:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 17:08:28 -0000 Received: (qmail 53469 invoked by uid 500); 29 Nov 2010 17:08:26 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 53414 invoked by uid 500); 29 Nov 2010 17:08:26 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 53405 invoked by uid 99); 29 Nov 2010 17:08:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 17:08:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 17:08:24 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oATH826Y017409 for ; Mon, 29 Nov 2010 17:08:02 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id oATH82Dp017390; Mon, 29 Nov 2010 12:08:02 -0500 (EST) Date: Mon, 29 Nov 2010 12:08:02 -0500 (EST) Message-Id: <201011291708.oATH82Dp017390@thor.apache.org> From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 50339] mod_jk parsing error if workers.properties contains whitespaces X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat Connectors X-Bugzilla-Component: mod_jk X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rainer.jung@kippdata.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=50339 --- Comment #2 from Rainer Jung 2010-11-29 12:07:58 EST --- Can you please try the following patch: Index: common/jk_map.c =================================================================== --- common/jk_map.c (revision 1032021) +++ common/jk_map.c (working copy) @@ -630,6 +630,7 @@ static size_t trim(char *s) { size_t i; + size_t off; /* check for empty strings */ if (!(i = strlen(s))) @@ -646,7 +647,10 @@ isspace((int)((unsigned char)s[i])); i++); if (i > 0) { - strcpy(s, &s[i]); + for (off = i; '\0' != s[i]; i++); { + s[i - off] = s[i]; + } + s[i - off] = s[i]; } return strlen(s); Thanks! Rainer -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org