Skip to content

Comma character in $arrFilterUrl #1317

@richardhj

Description

@richardhj

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment)

Key Value Comments
PHP version: 7.3
Contao version: 4.7
MetaModels version: 2.1
Installation via composer: yes
Installed MetaModels packages: filter_fromto
DCG version: 2.1

Issue description

A comma in the filter URL will be handled as array delimiter.

Steps to reproduce

  1. Place a "fromto" filter on a decimal attribute in the frontend.
  2. If the user inputs a "comma", e.g. 20,00 instead of 20.00, the error will be thrown.

Live example:
https://www.ferienpass-luebeck.de/angebote/fee/20.00 OK
https://www.ferienpass-luebeck.de/angebote/fee/20,00 NOT OK

Stack trace: https://sentry.io/share/issue/ac77bf0c81e84605a381b4886d18c136/
where $arrFilterUrl =

{
  age: 8,
  available: 1,
  date: ,,
  fee: 20,00
}

Metadata

Metadata

Labels

FilterThis ticket is related to filtering in the frontendbugA bug! A bug! Fast, squish it!frontendThis seems to be a bug in the frontend

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions