File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ func uploadedFileSave(L *lua.LState) int {
214214 absBase , _ := filepath .Abs (ulf .scriptdir )
215215 absTarget , _ := filepath .Abs (writeFilename )
216216 if ! strings .HasPrefix (absTarget , absBase + string (os .PathSeparator )) && absTarget != absBase {
217- logrus .Error ("path traversal attempt blocked: " , writeFilename )
217+ logrus .Warn ("path traversal attempt blocked: " , writeFilename )
218218 L .Push (lua .LBool (false ))
219219 return 1
220220 }
@@ -250,7 +250,7 @@ func uploadedFileSaveIn(L *lua.LState) int {
250250 absBase , _ := filepath .Abs (baseDir )
251251 absTarget , _ := filepath .Abs (writeFilename )
252252 if ! strings .HasPrefix (absTarget , absBase + string (os .PathSeparator )) && absTarget != absBase {
253- logrus .Error ("path traversal attempt blocked: " , writeFilename )
253+ logrus .Warn ("path traversal attempt blocked: " , writeFilename )
254254 L .Push (lua .LBool (false ))
255255 return 1
256256 }
You can’t perform that action at this time.
0 commit comments