Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 5205:ae3b5b29e379
merge
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 29 Mar 2023 19:24:58 +0200 |
parents | 345dac17a349 |
children | cd2258ca7894 |
comparison
equal
deleted
inserted
replaced
5204:08e0c9c0ab39 | 5205:ae3b5b29e379 |
---|---|
1173 } | 1173 } |
1174 | 1174 |
1175 if (lock.GetConfiguration().GetBooleanParameter("RestApiWriteToFileSystemEnabled", false)) | 1175 if (lock.GetConfiguration().GetBooleanParameter("RestApiWriteToFileSystemEnabled", false)) |
1176 { | 1176 { |
1177 context.SetRestApiWriteToFileSystemEnabled(true); | 1177 context.SetRestApiWriteToFileSystemEnabled(true); |
1178 LOG(WARNING) << "====> Your Rest API can write to the FileSystem. Review your configuration option \"RestApiWriteToFileSystemEnabled\". " | 1178 LOG(WARNING) << "====> Your REST API can write to the FileSystem. Review your configuration option \"RestApiWriteToFileSystemEnabled\". " |
1179 << "Your setup is POSSIBLY INSECURE <===="; | 1179 << "Your setup is POSSIBLY INSECURE <===="; |
1180 } | 1180 } |
1181 else | 1181 else |
1182 { | 1182 { |
1183 context.SetRestApiWriteToFileSystemEnabled(false); | 1183 context.SetRestApiWriteToFileSystemEnabled(false); |
1184 LOG(WARNING) << "Rest API can not write to the file system."; | 1184 LOG(WARNING) << "REST API can not write to the file system."; |
1185 } | 1185 } |
1186 | 1186 |
1187 if (lock.GetConfiguration().GetBooleanParameter("WebDavEnabled", true)) | 1187 if (lock.GetConfiguration().GetBooleanParameter("WebDavEnabled", true)) |
1188 { | 1188 { |
1189 const bool allowDelete = lock.GetConfiguration().GetBooleanParameter("WebDavDeleteAllowed", false); | 1189 const bool allowDelete = lock.GetConfiguration().GetBooleanParameter("WebDavDeleteAllowed", false); |