added new street filter
This commit is contained in:
@@ -275,7 +275,7 @@ AND (
|
||||
)
|
||||
OR
|
||||
/* street lowercase should not be oesterreich, österreich, austria, germany, deutschland, schweiz, switzerland */
|
||||
(LOWER(cco.street) NOT REGEXP '^(österreich|austria|germany|deutschland|schweiz|switzerland)$')
|
||||
(LOWER(cco.street) REGEXP '^(österreich|austria|germany|deutschland|schweiz|switzerland)$')
|
||||
OR
|
||||
/* For Germany: ZIP must be exactly 5 digits */
|
||||
(
|
||||
@@ -364,8 +364,8 @@ AND (
|
||||
(cco.zip IS NULL OR cco.zip NOT REGEXP '^[0-9]{4}$')
|
||||
)
|
||||
OR
|
||||
/* street lowercase should not be oesterreich, österreich, austria, germany, deutschland, schweiz, switzerland */
|
||||
(LOWER(cco.street) NOT REGEXP '^(österreich|austria|germany|deutschland|schweiz|switzerland)$')
|
||||
/* street lowercase should not be oesterreich, österreich, austria, germany, deutschland, schweiz, switzerland */
|
||||
(LOWER(cco.street) REGEXP '^(österreich|austria|germany|deutschland|schweiz|switzerland)$')
|
||||
OR
|
||||
/* For Germany: ZIP must be exactly 5 digits */
|
||||
(
|
||||
@@ -414,7 +414,8 @@ ORDER BY
|
||||
|
||||
// Check street for specific lowercase values
|
||||
$streetLower = strtolower(trim($data['street'] ?? ''));
|
||||
if (in_array($streetLower, ['österreich', 'austria', 'germany', 'deutschland', 'schweiz', 'switzerland'])) {
|
||||
var_dump($streetLower);
|
||||
if (in_array($streetLower, ['österreich', 'Österreich', 'austria', 'germany', 'deutschland', 'schweiz', 'switzerland'])) {
|
||||
$errors[] = 'street';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user