From a0429c99c524c6f74d3a5130b1cfcbb34d80033c Mon Sep 17 00:00:00 2001 From: Hecklezz Date: Sun, 9 Nov 2025 16:17:43 +1000 Subject: [PATCH] [FIRE-36079] Fixed saving multiple textures/photos with '/' in the filenames --- indra/newview/llpreviewtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index b17b5b5aa5..fbc5ea25d3 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -475,7 +475,7 @@ void LLPreviewTexture::saveTextureToFile(const std::vector& filenam void LLPreviewTexture::saveMultipleToFile(const std::string& file_name) { std::string texture_location(gSavedSettings.getString("TextureSaveLocation")); - std::string texture_name = file_name.empty() ? getItem()->getName() : file_name; + std::string texture_name = LLDir::getScrubbedFileName(file_name.empty() ? getItem()->getName() : file_name); std::string filepath; S32 i = 0;