From e9a01c57ce5e84fa311f5dae17e6f650f920b443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 30 May 2012 15:04:23 +0200 Subject: [PATCH] Should be safer #2 --- book.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.php b/book.php index 9444103..03f835d 100644 --- a/book.php +++ b/book.php @@ -123,7 +123,7 @@ class Book extends Base { if (!is_null ($se)) { $addition = $addition . "" . localize("content.series") . "" . str_format (localize ("content.series.data"), $this->seriesIndex, $se->name) . "
\n"; } - if (preg_match ("/<\/(div|p)>/", $this->comment)) + if (preg_match ("/<\/(div|p|a)>/", $this->comment)) { return $addition . str_replace ("
", "
", $this->comment); }