[recipes] Also escape , in css identifiers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Also escape , in css identifiers
- Date: Fri, 20 Jan 2017 18:23:55 +0000 (UTC)
commit df5c1a38bb4a3aec82e204156b03137149446a68
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 20 13:17:43 2017 -0500
Also escape , in css identifiers
Otherwise, things break.
src/gr-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-utils.c b/src/gr-utils.c
index 23def35..42530f7 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -347,7 +347,7 @@ generate_id (const char *first_string, ...)
while (s) {
for (q = s; *q; q = g_utf8_find_next_char (q, NULL)) {
gunichar ch = g_utf8_get_char (q);
- if (ch > 128 || ch == '.' || ch == ' ' ||
+ if (ch > 128 || ch == '.' || ch == ',' || ch == ' ' ||
ch == ']' || ch == '[' || g_ascii_iscntrl ((char)ch))
g_string_append_c (str, '_');
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]