aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/newview/lllogchat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/lllogchat.cpp b/linden/indra/newview/lllogchat.cpp
index a9b0610..62504d6 100644
--- a/linden/indra/newview/lllogchat.cpp
+++ b/linden/indra/newview/lllogchat.cpp
@@ -90,6 +90,9 @@ void LLLogChat::saveHistory(std::string filename, std::string line)
90 return; 90 return;
91 } 91 }
92 92
93 //dont allow bad files names
94 filename = gDirUtilp->getScrubbedFileName(filename);
95
93 LLFILE* fp = LLFile::fopen(LLLogChat::makeLogFileName(filename), "a"); /*Flawfinder: ignore*/ 96 LLFILE* fp = LLFile::fopen(LLLogChat::makeLogFileName(filename), "a"); /*Flawfinder: ignore*/
94 if (!fp) 97 if (!fp)
95 { 98 {
@@ -111,6 +114,9 @@ void LLLogChat::loadHistory(std::string filename , void (*callback)(ELogLineType
111 return ; 114 return ;
112 } 115 }
113 116
117 //dont allow bad files names
118 filename = gDirUtilp->getScrubbedFileName(filename);
119
114 LLFILE* fptr = LLFile::fopen(makeLogFileName(filename), "r"); /*Flawfinder: ignore*/ 120 LLFILE* fptr = LLFile::fopen(makeLogFileName(filename), "r"); /*Flawfinder: ignore*/
115 if (!fptr) 121 if (!fptr)
116 { 122 {