summaryrefslogtreecommitdiff
path: root/src/libtracker-sparql/tracker-utils.vala
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2010-08-03 10:44:31 +0200
committerJürg Billeter <j@bitron.ch>2010-08-10 14:35:54 +0200
commit7ac537cab64ccc88f62d2e1edbbae9c81bc5a0ae (patch)
tree30c47cb0b7ab3554d5d35f4cbe7ac2665626b14a /src/libtracker-sparql/tracker-utils.vala
parenta486710ebc79819347cc230dc0a77ed28d1d7573 (diff)
downloadtracker-7ac537cab64ccc88f62d2e1edbbae9c81bc5a0ae.tar.gz
libtracker-sparql: Consider \b and \f while iterating string to escape
Diffstat (limited to 'src/libtracker-sparql/tracker-utils.vala')
-rw-r--r--src/libtracker-sparql/tracker-utils.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtracker-sparql/tracker-utils.vala b/src/libtracker-sparql/tracker-utils.vala
index de6713619..5c3af4966 100644
--- a/src/libtracker-sparql/tracker-utils.vala
+++ b/src/libtracker-sparql/tracker-utils.vala
@@ -26,7 +26,7 @@ public string tracker_sparql_escape_string (string literal) {
char *p = literal;
while (*p != '\0') {
- size_t len = Posix.strcspn ((string) p, "\t\n\r\"\\");
+ size_t len = Posix.strcspn ((string) p, "\t\n\r\b\f\"\\");
str.append_len ((string) p, (long) len);
p += len;