summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2009-10-11 13:02:00 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2009-10-11 13:02:00 +0200
commit8945a307dea0fb6ed7f66b819b857c8dce6943ad (patch)
treeaa68b3973fdcd7af8319d602814e07330d41bcdf
parentc7eb737c5716b9dd01dede9ab0cf2213378ac3cb (diff)
Avoid XML validation errors caused by the use of double dashes in journal entry titles.
Ignore-this: ff6a3f883ddb70a9247e4d2817f8d50d darcs-hash:973eb2b463336cb333c80734ec2cb3ecb4e650a5
-rwxr-xr-xjournal.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/journal.lisp b/journal.lisp
index d3ecc02..80fb17a 100755
--- a/journal.lisp
+++ b/journal.lisp
@@ -356,7 +356,7 @@
dc:title=\"~A\"
trackback:ping=\"~A\" />
</rdf:RDF>
--->" (link-to :view :post-id id :absolute t) title (link-to :trackback :post-id id :absolute t)))
+-->" (link-to :view :post-id id :absolute t) (ppcre:regex-replace "--" title "&#8212;") (link-to :trackback :post-id id :absolute t)))
(<:div :class :journal-new-comment
(<:h2 "Neuen Kommentar schreiben")
(<:p (<:as-is "Bitte beachten Sie, da&szlig; E-Mail-Adressen niemals