chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] [Chicken-bugs] #353: SCGI ambiguity with plus and spa


From: Chicken Scheme
Subject: [Chicken-janitors] [Chicken-bugs] #353: SCGI ambiguity with plus and space
Date: Sun, 11 Nov 2007 20:39:35 -0000

#353: SCGI ambiguity with plus and space
--------------------------------------------------+-------------------------
 Reporter:  Peter Danenberg <address@hidden>  |       Type:  defect
   Status:  new                                   |   Priority:  major 
Component:  extensions                            |    Version:  2.7   
 Keywords:  scgi parameter parsing                |  
--------------------------------------------------+-------------------------
 SCGI correctly handles cases such as ?text=%20%2B and returns "<space>+",
 but when "<space>+" is submitted via a textarea, "++" is returned.

 Minimal example:

 {{{
 (require-extension scgi tcp (srfi 69))

 (define (default-text) "[empty]")

 (scgi:add-resource
  '("/" "")
  (lambda (env params)
    (scgi:write-response-header "text/html")
    ;; If I submit " +" via textarea, for instance, I get "++" back;
    ;; though ?text=%20%2B works.
    (write-string (hash-table-ref params "text" default-text))))

 (define scgi-server
   (scgi:make-server
    (tcp-listen 4000)))

 (scgi-server)
 }}}

-- 
Ticket URL: <http://trac.callcc.org/ticket/353>
Chicken Scheme <http://www.call-with-current-continuation.org/>
The CHICKEN Scheme-to-C compiler

reply via email to

[Prev in Thread] Current Thread [Next in Thread]