From: Lukasz Pawlik Date: Thu, 23 Feb 2012 14:58:12 +0000 (+0100) Subject: core: Prevent crash if User-Agent is not in UTF-8 X-Git-Tag: RYGEL_0_13_4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ece0c5648bf9b101ecbd393eb05f1ca12ce29b55;p=profile%2Fivi%2Frygel.git core: Prevent crash if User-Agent is not in UTF-8 Based on Lukasz's Harmattan patch. --- diff --git a/src/rygel/rygel-client-hacks.vala b/src/rygel/rygel-client-hacks.vala index 95b2e0e..2f6f72a 100644 --- a/src/rygel/rygel-client-hacks.vala +++ b/src/rygel/rygel-client-hacks.vala @@ -41,7 +41,8 @@ internal abstract class Rygel.ClientHacks : GLib.Object { throws ClientHacksError { try { this.agent_regex = new Regex (agent, - RegexCompileFlags.CASELESS, + RegexCompileFlags.CASELESS | + RegexCompileFlags.RAW, 0); } catch (RegexError error) { // This means subclasses did not provide a proper regular expression