Skip to content

Commit

Permalink
Fix migration on MySQL 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Oct 10, 2023
1 parent 2ba37ce commit a66e8dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install/migrations/update_10.0.9_to_10.0.10/ldap_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@
'authtype' => 3,
[
'OR' => [
'user_dn' => ['REGEXP', '(<|>|(&(?!#?[a-z0-9]+;)))'],
'sync_field' => ['REGEXP', '(<|>|(&(?!#?[a-z0-9]+;)))'],
// only a pre-filter, MySQL 5.7 does not support the complex regex used in PHP
'user_dn' => ['REGEXP', '(<|>|&)'],
'sync_field' => ['REGEXP', '(<|>|&)'],
]
]
],
Expand Down

0 comments on commit a66e8dd

Please sign in to comment.