Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 5201:345dac17a349
text
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 Mar 2023 12:03:01 +0200 |
parents | f8f1c4a9a216 |
children | cd2258ca7894 |
comparison
equal
deleted
inserted
replaced
5200:f8f1c4a9a216 | 5201:345dac17a349 |
---|---|
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); |