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