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

test

parent 579fbb4c
Loading
Loading
Loading
Loading
+2 −0
Changes for plugins/media/media.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1768,6 +1768,8 @@ namespace blogi {

        bool _isSizeAllowed(int w, int h){
            if(w == 0 && h == 0) return true;
            // Always allow small thumbnail sizes used by the internal browser
            if(w > 0 && w <= 200 && h >= 0 && h <= 200) return true;
            std::lock_guard<std::mutex> lock(_sizesMutex);
            for(const auto &s : _allowedSizes){
                if(w > 0 && h > 0){