From 19205b412a1620b7569c80c5ba601a5d87e09409 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Wed, 26 Sep 2018 14:11:46 +0000
Subject: [PATCH] https://core.spip.net/issues/4168 : echapper les : qui sont
 dans une url renvoyee par #SELF

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

diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index e065941cae..d391be685e 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -687,7 +687,7 @@ function self($amp = '&amp;', $root = false) {
 	include_spip('inc/filtres_mini');
 	$url = spip_htmlspecialchars($url);
 	
-	$url = str_replace(array("'", '"', '<', '[', ']'), array('%27', '%22', '%3C', '%5B', '%5D'), $url);
+	$url = str_replace(array("'", '"', '<', '[', ']', ':'), array('%27', '%22', '%3C', '%5B', '%5D', '%3A'), $url);
 
 	// &amp; ?
 	if ($amp != '&amp;') {
-- 
GitLab