From c9796814da7ede9132328bcd401ba4f9f01dd8b2 Mon Sep 17 00:00:00 2001
From: b_b <brunobergot@gmail.com>
Date: Fri, 1 Apr 2016 18:13:06 +0000
Subject: [PATCH] report de r22970 : transcoder les crochets des urls en
 notation "%" pour la balise SELF

---
 ecrire/inc/utils.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 40c74d4388..8caaaf5762 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -625,6 +625,8 @@ function self($amp = '&amp;', $root = false) {
 	// eviter les hacks
 	include_spip('inc/filtres_mini');
 	$url = spip_htmlspecialchars($url);
+	
+	$url = str_replace(array('[', ']'), array('%5B', '%5D'), $url);
 
 	// &amp; ?
 	if ($amp != '&amp;') {
-- 
GitLab