From e2f3047b0ffc4040166520a1d6ca8f83d523eec5 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Mon, 8 Feb 2021 17:02:00 +0100
Subject: [PATCH] Fix #3869 (ou du moins on espere, sinon c'est pas si grave)

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

diff --git a/ecrire/inc/pipelines.php b/ecrire/inc/pipelines.php
index 9d594f043d..0070e879d7 100644
--- a/ecrire/inc/pipelines.php
+++ b/ecrire/inc/pipelines.php
@@ -99,10 +99,10 @@ function f_surligne($texte) {
 	include_spip('inc/surligne');
 
 	if (isset($_SERVER['HTTP_REFERER'])) {
-		$_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;-]+,', ' ', $_SERVER['HTTP_REFERER']);
+		$_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;:-]+,', ' ', $_SERVER['HTTP_REFERER']);
 	}
 	if ($rech){
-		$rech = preg_replace(',[^\w\,/#&;-]+,', ' ', $rech);
+		$rech = preg_replace(',[^\w\,/#&;:-]+,', ' ', $rech);
 	}
 
 	return surligner_mots($texte, $rech);
-- 
GitLab