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

fixed crash

parent ee074b7d
Loading
Loading
Loading
Loading
+5
Changes for plugins/media/media.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -167,6 +167,11 @@ namespace blogi {
                        std::copy(curctdisp->getValue(),curctdisp->getValue()+strlen(curctdisp->getValue()),
                              std::inserter<std::vector<char>>(name,name.begin()));
                        name.push_back('\0');
                        if(curformdat->Value.empty()){
                            libhttppp::HTTPException excep;
                            excep[libhttppp::HTTPException::Error] << "Upload media empty Uploads not allowed!";
                            throw excep;
                        }
                        media.insert({name,curformdat->Value});
                    }
                }