Prevent players from mutating entities if they're pac banned (#1246)

* make CanTool check more robust

* Fix an HTML injection exploit (#1210)

* Improve FixURL

* Ensure number

* Simplify

* Update CONTRIBUTING.md

* Prevent players from mutating entities if they're pac banned

Co-authored-by: CapsAdmin <eliashogstvedt@gmail.com>
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
Co-authored-by: Techbot121 <techbot121@gmail.com>
Co-authored-by: Redox <mail@redox.to>
This commit is contained in:
thegrb93 2022-10-28 18:08:47 -04:00 committed by GitHub
parent 754674c927
commit fe292ceaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,8 @@ function emut.MutateEntity(owner, class_name, ent, ...)
return
end
if pace.IsBanned(owner) then return end
if SERVER then
if not override_enabled then
if owner:IsPlayer() and not emut.registered_mutators[class_name].cvar:GetBool() then