Skip to content

Commit

Permalink
Fix regular expression in DomainController
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed May 13, 2016
1 parent 94d9d61 commit ad81508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/DomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public function actionTransfer()
if (!empty($post[0]['domains'])) {
$domains = [];
foreach (StringHelper::explode($post[0]['domains'], "\n") as $line) {
preg_match("/^([a-z0-9][0-9a-z.-]+)(?:[,;\s]+)(.*)/i", $line, $matches);
preg_match('/^([a-z0-9][0-9a-z.-]+)(?:[,;\s]+)(.*)/i', $line, $matches);
if ($matches) {
$domain = strtolower($matches[1]);
$password = $matches[2];
Expand Down

0 comments on commit ad81508

Please sign in to comment.