[Swfdec] Branch 'as' - libswfdec/swfdec_movie.c

Benjamin Otte company at kemper.freedesktop.org
Tue Jul 3 04:41:12 PDT 2007


 libswfdec/swfdec_movie.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

New commits:
diff-tree 71cdae101afa3ffbc34bc4790ffbc9d435c9d8c3 (from 1d85fb35f0e2d57d684df1b9df2d42ddc7e7e547)
Author: Benjamin Otte <otte at gnome.org>
Date:   Tue Jul 3 12:34:26 2007 +0100

    parse broken & signs in urls better

diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index dff211f..0ae840f 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -456,6 +456,10 @@ swfdec_movie_set_variables (SwfdecMovie 
     const char *asname;
     SwfdecAsValue val;
 
+    while (*variables == '&')
+      variables++;
+    if (*variables == '\0')
+      break;
     if (!swfdec_urldecode_one (variables, &name, &value, &variables)) {
       SWFDEC_WARNING ("variables invalid at \"%s\"", variables);
       break;
@@ -471,9 +475,6 @@ swfdec_movie_set_variables (SwfdecMovie 
     g_free (value);
     swfdec_as_object_set_variable (as, asname, &val);
     SWFDEC_LOG ("Set variable \"%s\" to \"%s\"", name, value);
-    if (*variables == '\0')
-      break;
-    variables++;
   }
 }
 


More information about the Swfdec mailing list