diff options
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index f6cefce..0e39026 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -5159,6 +5159,11 @@ void process_initiate_download(LLMessageSystem* msg, void**) | |||
5159 | msg->getString("FileData", "SimFilename", sim_filename); | 5159 | msg->getString("FileData", "SimFilename", sim_filename); |
5160 | msg->getString("FileData", "ViewerFilename", viewer_filename); | 5160 | msg->getString("FileData", "ViewerFilename", viewer_filename); |
5161 | 5161 | ||
5162 | if (!gXferManager->validateFileForRequest(viewer_filename)) | ||
5163 | { | ||
5164 | llwarns << "SECURITY: Unauthorized download to local file " << viewer_filename << llendl; | ||
5165 | return; | ||
5166 | } | ||
5162 | gXferManager->requestFile(viewer_filename, | 5167 | gXferManager->requestFile(viewer_filename, |
5163 | sim_filename, | 5168 | sim_filename, |
5164 | LL_PATH_NONE, | 5169 | LL_PATH_NONE, |