I have a select field in the profiles module that contains backslashes eg. Mum\Dad, Aunt\Uncle
When I try to filter using that field I get the following error displayed in the views module:
An illegal choice has been detected. Please contact the site administrator.
The following error shows up in the logs:
Location: https://www.example.com/admin/build/views/ajax/config-item/Lists/default/filter/value
Message: Illegal choice Mum\\Dad in Options element.
Note the double back slash in the option.
This was working fine in development release dated 14th April 2008 and I can confirm does not work in beta3 or this mornings development release.
Comments
Comment #1
merlinofchaos commentedHmm. I tried some profile fields with a variety of special characters, and I cannot duplicate this.
Comment #2
merlinofchaos commentedComment #3
silid commentedFurther investigation proved that it was because magic_quotes_gpc was on.
For anyone else hosting with godaddy it is worth remembering that your custom php.ini file must be called php5.ini if you have php5 installed, even though the default one they create is called php.ini.
Thanks for your help.