ecrire/inc/ajouter_documents.php 1 location
|
@@ 409-409 (lines=1) @@
|
| 406 |
|
include_spip('inc/texte'); |
| 407 |
|
$new = trim(safehtml($texte)); |
| 408 |
|
// petit bug safehtml |
| 409 |
|
if (substr($new,0,2) == ']>') $new = ltrim(substr($new,2)); |
| 410 |
|
if ($new != $texte) ecrire_fichier($file, $texte = $new); |
| 411 |
|
} |
| 412 |
|
|
ecrire/public/phraser_html.php 1 location
|
@@ 236-236 (lines=1) @@
|
| 233 |
|
preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match); |
| 234 |
|
$suite = ltrim($match[2]); |
| 235 |
|
$fonc = trim($match[1]); |
| 236 |
|
if ($fonc && $fonc[0] == "|") $fonc = ltrim(substr($fonc,1)); |
| 237 |
|
$res = array($fonc); |
| 238 |
|
$err_f = ''; |
| 239 |
|
// cas du filtre sans argument ou du critere / |