aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-05-24 05:12:37 +0800
committerChristian Persch <chpe@src.gnome.org>2008-05-24 05:12:37 +0800
commitbc489304588d450867da415317b3f084f38d253c (patch)
treeb41812a5d3a15bbc0bf744a0a2254b6f3508d531 /embed/mozilla
parent88e4e7a5d7f745a4ca7aa186ee3767a985493cf2 (diff)
downloadgsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar.gz
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar.bz2
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar.lz
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar.xz
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.tar.zst
gsoc2013-epiphany-bc489304588d450867da415317b3f084f38d253c.zip
Remove leading/trailing whitespace from strings in EventContext. Bug #533983.
svn path=/branches/gnome-2-22/; revision=8246
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EventContext.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 6e22fce8a..0cc04fe6b 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -968,9 +968,10 @@ nsresult EventContext::SetStringProperty (const char *name, const char *value)
GValue *val = g_new0 (GValue, 1);
g_value_init (val, G_TYPE_STRING);
-
- g_value_set_string (val, value);
-
+
+ char *copy = g_strstrip (g_strdup (value));
+ g_value_take_string (val, copy);
+
mozilla_embed_event_set_property (mEmbedEvent, name, val);
return NS_OK;