[xiph-commits] r2963 - cmmlwiki/trunk/cmmlwiki

ctford at svn.annodex.net ctford at svn.annodex.net
Sun Jun 17 07:47:26 PDT 2007


Author: ctford
Date: 2007-06-17 07:47:26 -0700 (Sun, 17 Jun 2007)
New Revision: 2963

Modified:
   cmmlwiki/trunk/cmmlwiki/embed.py
Log:
Make sure to trim play_url before adding a new fragment onto it.


Modified: cmmlwiki/trunk/cmmlwiki/embed.py
===================================================================
--- cmmlwiki/trunk/cmmlwiki/embed.py	2007-06-17 12:42:45 UTC (rev 2962)
+++ cmmlwiki/trunk/cmmlwiki/embed.py	2007-06-17 14:47:26 UTC (rev 2963)
@@ -110,7 +110,8 @@
         styleTag    += "<style\>";
 
         var videoTag = "<" + tagName + " ";
-        videoTag    += "src='%s?" + getFragment(document.URL) + "' ";
+        embedTag    += "src='" + getBaseUrl( "%s" );
+        embedTag    += "?" + getFragment(document.URL) + "' ";
         videoTag    += "autoplay='true' ";
         videoTag    += "/>";
 
@@ -122,7 +123,8 @@
         tagName = "embed";
 
         var embedTag = "<" + tagName + " ";
-        embedTag    += "src='%s?" + getFragment(document.URL) + "' ";
+        embedTag    += "src='" + getBaseUrl( "%s" );
+        embedTag    += "?" + getFragment(document.URL) + "' ";
         embedTag    += "type='" + mimeType + "' ";
         embedTag    += "height='" + height + "' ";
         embedTag    += "width='" + width + "'";



More information about the commits mailing list