From abfa3c32cec4409901050109ec2f94564794dc99 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Thu, 15 Sep 2011 00:17:06 +0200 Subject: Uri-encode strings when replacing URI patterns --- henrietta-cache.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'henrietta-cache.scm') diff --git a/henrietta-cache.scm b/henrietta-cache.scm index 1dc264c..76276cb 100644 --- a/henrietta-cache.scm +++ b/henrietta-cache.scm @@ -23,7 +23,7 @@ EOF (define (replace-uri-patterns uri patterns) (string-translate* uri (map (lambda (pattern) (cons (conc "{" (car pattern) "}") - (->string (cdr pattern)))) + (uri-encode-string (->string (cdr pattern))))) patterns))) ;; We could also use sendfile egg here, but do we want the dependency? -- cgit v1.2.3