Commit c5fa7e1e authored by jan.koester's avatar jan.koester
Browse files

filer bugfix

parent 249a21d2
Loading
Loading
Loading
Loading
+6 −1
Changes for plugins/nginxfiler/filer.cpp: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -109,6 +109,11 @@ namespace blogi {
                    setConfig(*Args->database[tid],"NGINXFILERPORT",cur.value);
                    saved = true;
                }else if(cur.key=="nginxfilerprefix"){
                    if(cur.value[0]!='/'){
                        libhttppp::HTTPException e;
                        e[libhttppp::HTTPException::Error] << "nginxfiler: Prefix must start with '/' !";
                        throw e; 
                    }
                    setConfig(*Args->database[tid],"NGINXFILERPREFIX",cur.value);
                    saved = true;
                }else if(cur.key=="nginxfilerssl"){
@@ -201,7 +206,7 @@ namespace blogi {
                }
                if(ntype==0)
                    out << "<li class=\"file\" >"
                        << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort << "/"
                        << "<a href=\"" << (_NSSL ? "https://" : "http://") << _NHost << ":" << _NPort
                        << _NPrefix << path << name <<"\" >"
                        << "<img alt=\"file\" src=\""<< Args->config->buildurl("theme/public/file.webp") << "\" ><p>" << name << "</p></a></li>";
                else if(ntype==1)