[tracker/libtracker-sparql: 27/44] libtracker-sparql: Consider \b and \f while iterating string to escape



commit 7ac537cab64ccc88f62d2e1edbbae9c81bc5a0ae
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Aug 3 10:44:31 2010 +0200

    libtracker-sparql: Consider \b and \f while iterating string to escape

 src/libtracker-sparql/tracker-utils.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-utils.vala b/src/libtracker-sparql/tracker-utils.vala
index de67136..5c3af49 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]