Skip to content

Commit fffd1eb

Browse files
committed
Replace eregi() with preg_match(), required for PHP update, remove flag
1 parent 7601954 commit fffd1eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate/lib/functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function innerHTML(&$xml, $nodeName)
8585
// there are multiple instanced of eregi() in this document,
8686
// replace all -- CR 5 July 2017
8787
//eregi("<$nodeName>(.*)<\/$nodeName>", $node->toString(), $matches);
88-
preg_match("/<$nodeName>(.*)<\/$nodeName>/", $node->toString(), $matches, PCRE_CASELESS);
88+
preg_match("/<$nodeName>(.*)<\/$nodeName>/", $node->toString(), $matches);
8989
// replace invalid <c> with <kbd>
9090
$string = str_replace(array('<c>', '</c>'), array('<kbd>', '</kbd>'), $matches[1]);
9191
if (substr($string, 0, 1) == "\n") {

0 commit comments

Comments
 (0)