Skip to content

Commit

Permalink
History: Fix issue where secure commands weren't being filtered from …
Browse files Browse the repository at this point in the history
…the editbox history
  • Loading branch information
sylvanaar committed May 31, 2020
1 parent 666748d commit 476f709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/History.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ Prat:AddModuleToLoad(function()
end

local editBoxText = editBox:GetText();
if (strlen(editBoxText) > 0 and not IsSecureCmd(editBoxText)) then
text = (header and (text .. " ") or "") .. editBox:GetText();
if (strlen(editBoxText) > 0 and not IsSecureCmd(editBoxText:match("^/[%a%d_]+"))) then
text = (header and (text .. " ") or "") .. editBoxText;
self:saveLine(text, editBox)
end
end
Expand Down

0 comments on commit 476f709

Please sign in to comment.