Ticket #11925: allow_symlink.patch

File allow_symlink.patch, 1.0 KB (added by pmhahn@…, 7 years ago)

Allow symlinks to external files; needs to be checked on Windows

  • mythtv/libs/libmythupnp/htmlserver.cpp

    Description: Allow serving synlinked JavaScript libraries.
    Author: Philipp Hahn <pmhahn@debian.org>
    Forwarded: yes
    
    a b bool HtmlServerExtension::ProcessRequest 
    8787
    8888        if (bStorageGroupFile || oInfo.exists() == true )
    8989        {
    90             QString sResName = oInfo.canonicalFilePath();
     90            QString sResName = oInfo.dir().canonicalPath();
    9191
    9292            // --------------------------------------------------------------
    9393            // Checking for url's that contain ../ or similar.
    bool HtmlServerExtension::ProcessRequest 
    9898            {
    9999                if (oInfo.exists())
    100100                {
    101                     if (oInfo.isSymLink())
    102                         sResName = oInfo.symLinkTarget();
     101                    QString sResName = oInfo.canonicalFilePath();
    103102
    104103                    // ------------------------------------------------------
    105104                    // Is this a Qt Server Page (File contains script)...