<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: func.php,v 1.58 2006/04/15 02:50:21 teanan Exp $
+// $Id: func.php,v 1.59 2006/04/15 17:33:35 teanan Exp $
// Copyright (C)
// 2002-2006 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
$b_match = FALSE;
foreach ($keys as $key) {
- $b_match = preg_match('/' . $key . '/', $source);
+ $b_match = preg_match('/' . $key . '/S', $source);
if ($b_match xor $b_type) break;
}
if ($b_match) $pages[$page] = get_filetime($page);
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: html.php,v 1.56 2006/04/15 02:50:21 teanan Exp $
+// $Id: html.php,v 1.57 2006/04/15 17:33:35 teanan Exp $
// Copyright (C)
// 2002-2006 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
'|' . '<[^>]*>' . // Ignore tags
'|' . '&[^;]+;' . // Ignore entities
'|' . '(' . $pattern . ')' . // $matches[1]: Regex for a search word
- '/s';
+ '/sS';
$decorate_Nth_word = create_function(
'$matches',
'return (isset($matches[1])) ? ' .