sukhvir007 / tracmor

Automatically exported from code.google.com/p/tracmor
GNU General Public License v2.0
0 stars 0 forks source link

AJAX error when editing a custom field #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Edit an existing custom field, putting an apostrophe in the short description
2. Hit the save button

What is the expected output? What do you see instead?
The custom field should be saved with the new short description. Instead you 
receive an AJAX error:

MySqli Error: 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 's' 
WHERE column_name = 'Condition'' at line 1

Source File:   /tracmor/admin/custom_field_edit.php Line:   663

Original issue reported on code.google.com by jsincl...@gmail.com on 2 Aug 2011 at 8:54

GoogleCodeExporter commented 8 years ago
To clarify, this error happens when single quotes are entered as part of a 
custom field name.

Original comment by jsincl...@gmail.com on 13 Sep 2011 at 2:04

GoogleCodeExporter commented 8 years ago

Original comment by jsincl...@gmail.com on 13 Sep 2011 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by jsincl...@gmail.com on 13 Sep 2011 at 3:05

GoogleCodeExporter commented 8 years ago
Fixed in r821

Original comment by jsincl...@gmail.com on 13 Sep 2011 at 8:29