Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66CDC91AE for ; Sat, 25 Feb 2012 18:11:17 +0000 (UTC) Received: (qmail 91150 invoked by uid 500); 25 Feb 2012 18:11:17 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 91098 invoked by uid 500); 25 Feb 2012 18:11:17 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 91091 invoked by uid 99); 25 Feb 2012 18:11:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 18:11:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 18:11:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8226223888FD; Sat, 25 Feb 2012 18:10:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1293658 - /httpd/httpd/trunk/modules/session/mod_session.c Date: Sat, 25 Feb 2012 18:10:56 -0000 To: cvs@httpd.apache.org From: minfrin@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120225181056.8226223888FD@eris.apache.org> Author: minfrin Date: Sat Feb 25 18:10:56 2012 New Revision: 1293658 URL: http://svn.apache.org/viewvc?rev=1293658&view=rev Log: mod_session: Sessions are encoded as application/x-www-form-urlencoded strings, however we do not handle the encoding of spaces properly. Fixed. Modified: httpd/httpd/trunk/modules/session/mod_session.c Modified: httpd/httpd/trunk/modules/session/mod_session.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session.c?rev=1293658&r1=1293657&r2=1293658&view=diff ============================================================================== --- httpd/httpd/trunk/modules/session/mod_session.c (original) +++ httpd/httpd/trunk/modules/session/mod_session.c Sat Feb 25 18:10:56 2012 @@ -303,11 +303,11 @@ static int identity_concat(char *buffer, *slider = '&'; slider++; } - ap_escape_path_segment_buffer(slider, key); + ap_escape_urlencoded_buffer(slider, key); slider += strlen(slider); *slider = '='; slider++; - ap_escape_path_segment_buffer(slider, val); + ap_escape_urlencoded_buffer(slider, val); return 1; } @@ -384,7 +384,7 @@ static apr_status_t session_identity_dec if (!val || !*val) { apr_table_unset(z->entries, key); } - else if (!ap_unescape_all(key) && !ap_unescape_all(val)) { + else if (!ap_unescape_urlencoded(key) && !ap_unescape_urlencoded(val)) { if (!strcmp(SESSION_EXPIRY, key)) { z->expiry = (apr_time_t) apr_atoi64(val); }