[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/java
From:       Koos Vriezen <koos.vriezen () xs4all ! nl>
Date:       2003-07-27 10:34:44
[Download RAW message or body]

CVS commit by vriezen: 

Strip filename of __KHTML__PLUGINBASEURL (I wonder why this worked before)
fixes http://www.cs.umd.edu/hcil/piccolo/play/swingJazz/swingjazz.html


  M +6 -3      kjavaappletviewer.cpp   1.19


--- kdelibs/khtml/java/kjavaappletviewer.cpp  #1.18:1.19
@@ -180,7 +180,10 @@ KJavaAppletViewer::KJavaAppletViewer (QW
             if (!name.isEmpty()) {
                 QString name_lower = name.lower ();
-                if (name == "__KHTML__PLUGINBASEURL")
-                    baseurl = value;
-                else if (name == "__KHTML__CODEBASE")
+                if (name == "__KHTML__PLUGINBASEURL") {
+                    KURL url (value);
+                    QString fn = url.fileName (false);
+                    baseurl = fn.isEmpty () ?
+                        value : value.left (value.length ()-fn.length ());
+                } else if (name == "__KHTML__CODEBASE")
                     khtml_codebase = value;
                 else if (name_lower == QString::fromLatin1("codebase") ||


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic