diff options
author | Peter Bex <peter@more-magic.net> | 2011-09-15 00:17:06 +0200 |
---|---|---|
committer | Peter Bex <peter@more-magic.net> | 2011-09-15 00:17:06 +0200 |
commit | abfa3c32cec4409901050109ec2f94564794dc99 (patch) | |
tree | 34d6a9acb958562b3a7a16b8272d71c0ec918309 /henrietta-cache.scm | |
parent | 61000416e7d91bffd813677f6a7a12f87af1452a (diff) | |
download | henrietta-cache-abfa3c32cec4409901050109ec2f94564794dc99.tar.gz |
Uri-encode strings when replacing URI patterns
Diffstat (limited to 'henrietta-cache.scm')
-rw-r--r-- | henrietta-cache.scm | 2 |
1 files changed, 1 insertions, 1 deletions
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? |