I just found that If I have a Multi-enum that has an option containing an apostrophe the sort for that field will break. For Example If you have an Entity of Job's with a Field of Companies that is a Multi-enum and you add the options Shop and Save, Stop n Shop, Kroger's, Walmart, Publix, Shaw's, Aldi, Rewe, Food Lion and Piggly Wiggly. The Kroger's and the Shaw's will throw and error in the console if you try and sort the List View of the Job Entity using the Companies column. It will throw this error "Server side error 200: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' 'Walmart', 'Publix', 'Sh' at line number 25."
I believe this to be caused from the single quote not being encoded when it is stored in the database. This is also a possible security vulnerability as it could be an opening for SQL injection.
Please advise on what action should be taken to circumvent any security risk.
I believe this to be caused from the single quote not being encoded when it is stored in the database. This is also a possible security vulnerability as it could be an opening for SQL injection.
Please advise on what action should be taken to circumvent any security risk.
Comment