Location filter not working with accents
-
Hello,
We’re using your plugin on a client website and we noticed a small bug in sanitization due to accents in location names.
The plugin version is 3.4.24
Example
Location name : Théâtre Cornillon
When filtering on this location on the main calendar page returns no events.
The problems seems to be the map_deep sanitize_text_field which is run on the $_GET array.File : wp-content/plugins/my-calendar/my-calendar-events.php
Method : my_calendar_get_events
Line : 111
The result for this location is the name is truncated.
When filtering the name passed through GET parameter is Th%C3%A9%C3%A2tre+Cornillon
(MAIN_URL + /my-calendar/?ltype=name&loc=Th%25C3%25A9%25C3%25A2tre%2BCornillon)
After sanitization this name is transformed to Thtre+Cornillon which is not recognized.
For now i have edited the code to make it work by disabling sanitization, i know it’s not really good regarding security but it would be great if you could provide an update to the actual plugin to make it work.
Thank you.
Stefan.
The topic ‘Location filter not working with accents’ is closed to new replies.