From b5a534b3631d6e09e0a4de486aa1323c7cf045f6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 10 May 2009 16:20:50 +0200 Subject: [PATCH] Replace variables in templates literally --- midori/sokoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5