Skip to content

Commit

Permalink
Merge pull request #394 from khanhicetea/0.x
Browse files Browse the repository at this point in the history
[PHP 7.3 Critical bug] PCRE2 fix
  • Loading branch information
sagikazarmark authored Jan 25, 2019
2 parents c452caa + 737eeff commit e1e931c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bernard/Message/DefaultMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($name, array $parameters = array())
$this->$k = $v;
}

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

/**
Expand Down

0 comments on commit e1e931c

Please sign in to comment.