Description: Allow serving synlinked JavaScript libraries.
Author: Philipp Hahn <pmhahn@debian.org>
Forwarded: yes

--- a/mythtv/libs/libmythupnp/htmlserver.cpp
+++ b/mythtv/libs/libmythupnp/htmlserver.cpp
@@ -87,7 +87,7 @@ bool HtmlServerExtension::ProcessRequest
 
         if (bStorageGroupFile || oInfo.exists() == true )
         {
-            QString sResName = oInfo.canonicalFilePath();
+            QString sResName = oInfo.dir().canonicalPath();
 
             // --------------------------------------------------------------
             // Checking for url's that contain ../ or similar.
@@ -98,8 +98,7 @@ bool HtmlServerExtension::ProcessRequest
             {
                 if (oInfo.exists())
                 {
-                    if (oInfo.isSymLink())
-                        sResName = oInfo.symLinkTarget();
+                    QString sResName = oInfo.canonicalFilePath();
 
                     // ------------------------------------------------------
                     // Is this a Qt Server Page (File contains script)...
