db_escape_string() should use for escape user query argument inputs. $ts['sql'] is column name, where $ts['sort'] are ASC or DESC. They shouldn't use db_escape_string().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | incorrect_db_escape_string-0.2.patch | 776 bytes | hswong3i |
| incorrect_db_escape_string-0.1.patch | 775 bytes | hswong3i |
Comments
Comment #1
hswong3i commentedI mark this into my personal research project issue.
Comment #2
hswong3i commentedPatch reroll via latest CVS HEAD. Test without ill effect.
Comment #3
hswong3i commentedJust hope to promote if we are able to fix this within D6 RC1.
Comment #4
gábor hojtsyThis still needs to be sanitized. Feel free to merge with http://drupal.org/node/198856 as it is about %s, which is exactly a db_escape_string() just as with here, and even with column names as there.
Comment #5
hswong3i commentedmerged