r9341: fix case reading
[kmrcl.git] / web-utils.lisp
index 35611eb0b9739bdd5c0c4b28d376ee84e0f1e008..40cb04018bed71dfd1883a0c09880261a7eda2f3 100644 (file)
             (t
              (setf (schar new p-new) c)
              (incf p-old))))))
+
+(defun split-uri-query-string (s)
+  (mapcar
+   (lambda (pair)
+     (let ((pos (position #\= pair)))
+       (when pos
+        (cons (subseq pair 0 pos)
+              (when (> (length pair) pos)
+                (decode-uri-query-string (subseq pair (1+ pos))))))))
+   (delimited-string-to-list s #\&)))