Projet

Général

Profil

Révision 6b24a280

Ajouté par Assos Assos il y a presque 4 ans

-a

Voir les différences:

drupal7/modules/filter/filter.api.php
202 202
 */
203 203
function callback_filter_prepare($text, $filter, $format, $langcode, $cache, $cache_id) {
204 204
  // Escape <code> and </code> tags.
205
  $text = preg_replace('|<code>(.+?)</code>|se', "[codefilter_code]$1[/codefilter_code]", $text);
205
  $text = preg_replace('|<code>(.+?)</code>|s', "[codefilter_code]$1[/codefilter_code]", $text);
206 206
  return $text;
207 207
}
208 208

  
......
234 234
 * @ingroup callbacks
235 235
 */
236 236
function callback_filter_process($text, $filter, $format, $langcode, $cache, $cache_id) {
237
  $text = preg_replace('|\[codefilter_code\](.+?)\[/codefilter_code\]|se', "<pre>$1</pre>", $text);
237
  $text = preg_replace('|\[codefilter_code\](.+?)\[/codefilter_code\]|s', "<pre>$1</pre>", $text);
238 238

  
239 239
  return $text;
240 240
}

Formats disponibles : Unified diff