Skip to content

Commit a87d76d

Browse files
authored
Fix deprecation notice for passing a null to preg_replace (#39)
1 parent 0204160 commit a87d76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ function remove_invisible_characters($str, $url_encoded = TRUE)
727727

728728
do
729729
{
730-
$str = preg_replace($non_displayables, '', $str, -1, $count);
730+
$str = preg_replace($non_displayables, '', (string)$str, -1, $count);
731731
}
732732
while ($count);
733733

0 commit comments

Comments
 (0)