Skip to content

Commit e1e931c

Browse files
Merge pull request #394 from khanhicetea/0.x
[PHP 7.3 Critical bug] PCRE2 fix
2 parents c452caa + 737eeff commit e1e931c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bernard/Message/DefaultMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct($name, array $parameters = array())
1919
$this->$k = $v;
2020
}
2121

22-
$this->name = preg_replace('/(^([0-9]+))|([^[:alnum:]-_+])/i', '', $name);
22+
$this->name = preg_replace('/(^([0-9]+))|([^[:alnum:]\-_+])/i', '', $name);
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)