[ckan-changes] [ckan/ckan] 038313: [#1838] Escape % from all strings that may have th...
GitHub
noreply at github.com
Thu Jul 17 13:21:59 UTC 2014
Branch: refs/heads/1838-fts-on-specific-columns
Home: https://github.com/ckan/ckan
Commit: 0383138e9abdfed1513cdcf585bd407e892efb0a
https://github.com/ckan/ckan/commit/0383138e9abdfed1513cdcf585bd407e892efb0a
Author: Vitor Baptista <vitor at vitorbaptista.com>
Date: 2014-07-17 (Thu, 17 Jul 2014)
Changed paths:
M ckanext/datastore/db.py
Log Message:
-----------
[#1838] Escape % from all strings that may have them
The problem we faced when doing format() twice was that if someone passed a
query with "{}", it'll look confuse the second format(). For example, the
query:
```json
{
filters: {
"country": "{test}"
}
}
```
It'll confuse the second format(). So, instead of doing two formats to escape
%, we escape % before running it.
More information about the ckan-changes
mailing list