dépôts
/
lhc
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] v3.0.22-->v3.0.24
[lhc/web/www.git]
/
www
/
ecrire
/
inc
/
pipelines.php
diff --git
a/www/ecrire/inc/pipelines.php
b/www/ecrire/inc/pipelines.php
index
c204559
..
1b3a83a
100644
(file)
--- a/
www/ecrire/inc/pipelines.php
+++ b/
www/ecrire/inc/pipelines.php
@@
-82,6
+82,13
@@
function f_surligne ($texte) {
OR !isset($_SERVER['HTTP_REFERER'])))
return $texte;
include_spip('inc/surligne');
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);
}
return surligner_mots($texte, $rech);
}