summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Pawlik <lukasz.pawlik@comarch.com>2012-02-23 15:58:12 +0100
committerJens Georg <mail@jensge.org>2012-03-19 20:35:49 +0100
commitece0c5648bf9b101ecbd393eb05f1ca12ce29b55 (patch)
treedec4bf0a142fe9312e9828887be613a8f5ea6c01
parentcf3a09ab14ddb85e05ad3d7e15ae0abb02e447ae (diff)
downloadrygel-ece0c5648bf9b101ecbd393eb05f1ca12ce29b55.tar.gz
core: Prevent crash if User-Agent is not in UTF-8
Based on Lukasz's Harmattan patch.
-rw-r--r--src/rygel/rygel-client-hacks.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rygel/rygel-client-hacks.vala b/src/rygel/rygel-client-hacks.vala
index 95b2e0e8..2f6f72ab 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