Skip to content

Commit

Permalink
Support '/' as a possible column name. (#45268)
Browse files Browse the repository at this point in the history
Escape '/' when checking for guard-able column.
  • Loading branch information
amanpatel committed Dec 12, 2022
1 parent 3480b7c commit 662f1bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -202,7 +202,7 @@ public function isGuarded($key)
}

return $this->getGuarded() == ['*'] ||
! empty(preg_grep('/^'.preg_quote($key).'$/i', $this->getGuarded())) ||
! empty(preg_grep('/^'.preg_quote($key, '/').'$/i', $this->getGuarded())) ||
! $this->isGuardableColumn($key);
}

Expand Down

0 comments on commit 662f1bd

Please sign in to comment.