X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fpipelines.php;h=1b3a83a5f5e030dfff8327d6e13ca8992801894a;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hp=3b89189e2028b4647c5eb80ea96ff2882c3f41a0;hpb=a33c2ba9d919664b3bb0f565f8e9a8b9d8530cdb;p=lhc%2Fweb%2Fclavette_www.git diff --git a/www/ecrire/inc/pipelines.php b/www/ecrire/inc/pipelines.php index 3b89189..1b3a83a 100644 --- a/www/ecrire/inc/pipelines.php +++ b/www/ecrire/inc/pipelines.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2016 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -82,6 +82,13 @@ function f_surligne ($texte) { OR !isset($_SERVER['HTTP_REFERER']))) return $texte; include_spip('inc/surligne'); + if (isset($_SERVER['HTTP_REFERER'])) { + $_SERVER['HTTP_REFERER'] = preg_replace(',[^\w\,/#&;-]+,', ' ', $_SERVER['HTTP_REFERER']); + } + if ($rech){ + $rech = preg_replace(',[^\w\,/#&;-]+,', ' ', $rech); + } + return surligner_mots($texte, $rech); } @@ -213,7 +220,7 @@ function f_queue(&$texte){ // eviter une inclusion si rien a faire if (_request('action')=='cron' - OR queue_sleep_time_to_next_job() + OR queue_sleep_time_to_next_job()>0 OR defined('_DEBUG_BLOCK_QUEUE')){ return $texte; }