From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.141.15 with SMTP id o15cs127565rvd; Fri, 29 Jan 2010 04:45:52 -0800 (PST) Received-SPF: pass (google.com: domain of 3fthiSwMJCgUnghfqnf2.sjywfhp-ij0jqlttlqjlwtzux.htr@groups.bounces.google.com designates 10.142.65.37 as permitted sender) client-ip=10.142.65.37; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3fthiSwMJCgUnghfqnf2.sjywfhp-ij0jqlttlqjlwtzux.htr@groups.bounces.google.com designates 10.142.65.37 as permitted sender) smtp.mail=3fthiSwMJCgUnghfqnf2.sjywfhp-ij0jqlttlqjlwtzux.htr@groups.bounces.google.com; dkim=pass header.i=3fthiSwMJCgUnghfqnf2.sjywfhp-ij0jqlttlqjlwtzux.htr@groups.bounces.google.com Received: from mr.google.com ([10.142.65.37]) by 10.142.65.37 with SMTP id n37mr96491wfa.32.1264769151783 (num_hops = 1); Fri, 29 Jan 2010 04:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:mime-version:received:in-reply-to :references:date:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-transfer-encoding; bh=yzt5N94Sgpwr7hr8JbmDlW++ppUySQt4RNxO4YN96is=; b=pFzL7EAFT5MuvLAev2wUFMv2hEtUnFutcxXEX8LpBi3lGE4C+Nm3jkL/rEm2gLpcE3 hMNqiLvadQP7EwxySpwPeIndVLiBVCZD+B3+bQP5qNie3CR+lK8L0hMDxA0YRTtUQzaH yzNdjv/QgTCkS6uNjxq36yo0yN/gfpJySek8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-authentication-results :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:x-thread-url:x-message-url:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=o2d9GB6Htfk4H1J+rIjDHg6ZX/2VyKU0a5+GH/sIOQxwUdcg/Lm6CotWxwYa1D4CLJ x/Rmkj7S3fZkodh5vFnK2K8HPzirQJFezhwlDevbyb0Z7aQF5oI3C43CYUYRJl6pni9P 9NcVEY3SIaBQTKIWPa0IMADCw12o/AtQrOE/I= Received: by 10.142.65.37 with SMTP id n37mr20342wfa.32.1264769150245; Fri, 29 Jan 2010 04:45:50 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.142.8.39 with SMTP id 39ls744394wfh.0.p; Fri, 29 Jan 2010 04:45:48 -0800 (PST) Received: by 10.143.27.22 with SMTP id e22mr134897wfj.0.1264769148305; Fri, 29 Jan 2010 04:45:48 -0800 (PST) Received: by 10.143.27.22 with SMTP id e22mr134896wfj.0.1264769148285; Fri, 29 Jan 2010 04:45:48 -0800 (PST) Return-Path: Received: from mail-px0-f198.google.com (mail-px0-f198.google.com [209.85.216.198]) by gmr-mx.google.com with ESMTP id 23si636886pxi.4.2010.01.29.04.45.47; Fri, 29 Jan 2010 04:45:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.198 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) client-ip=209.85.216.198; Received: by mail-px0-f198.google.com with SMTP id 36so1406589pxi.26 for ; Fri, 29 Jan 2010 04:45:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.213.32 with SMTP id p32mr557360rvq.103.1264769147707; Fri, 29 Jan 2010 04:45:47 -0800 (PST) In-Reply-To: <2d67024e-41cd-493b-838d-cf06cf4b64ce@g28g2000prb.googlegroups.com> References: <2d67024e-41cd-493b-838d-cf06cf4b64ce@g28g2000prb.googlegroups.com> Date: Fri, 29 Jan 2010 13:45:47 +0100 Message-ID: Subject: Re: Why is there quote parsing on queries? From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.216.198 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) smtp.mail=ibc@aliax.net X-Original-Sender: ibc@aliax.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/f81f79e633b9e086 X-Message-Url: http://groups.google.com/group/rack-devel/msg/644d78ff6e90f3e2 Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/1/28 Simon Chiang : > Rack currently parses out quoted values such that you get this: > > =C2=A0foo=3D'bar' =C2=A0 # =3D> {"foo" =3D> "bar"} > > Rather than this: > > =C2=A0foo=3D'bar' =C2=A0 # =3D> {"foo" =3D> "'bar'"} > > I came across this when I was trying to send multiple quoted values > through a text field such that: > > =C2=A0Text Field =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Encoded String =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0String After > Parsing > =C2=A0"'a' 'b'" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%2= 7a%27+%27b%27 =C2=A0 =C2=A0 =C2=A0 =C2=A0"a' 'b" > =C2=A0" 'a' 'b' " =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+%27a%2= 7+%27b%27+ =C2=A0 =C2=A0" 'a' 'b' " IMHO this is a bug in Rack. Usually parameters can contain a non double quoted string value or a double quoted string value (or no value). In case the parameter value contains single quote (') it should be treated as any other char into a string and shouldn't be stripped out. --=20 I=C3=B1aki Baz Castillo