From: Christian Dywan Date: Sun, 10 May 2009 14:20:50 +0000 (+0200) Subject: Replace variables in templates literally X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a534b3631d6e09e0a4de486aa1323c7cf045f6;p=midori Replace variables in templates literally --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 8e9c84b2..59d88e05 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -1057,7 +1057,7 @@ sokoke_replace_variables (const gchar* template, const gchar* value = va_arg (args, const gchar*); GRegex* regex = g_regex_new (variable, 0, 0, NULL); gchar* replaced = result; - result = g_regex_replace (regex, replaced, -1, 0, value, 0, NULL); + result = g_regex_replace_literal (regex, replaced, -1, 0, value, 0, NULL); g_free (replaced); g_regex_unref (regex); }