sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
333 stars 174 forks source link

(#850) Fix: Improve check for get valid steamid #856

Closed Rushaway closed 1 year ago

Rushaway commented 1 year ago

Description

After #850 i discovered another way to broke the code by inserting an invalid steam_id format in dabtase

Motivation and Context

That broke the page display :<

How Has This Been Tested?

Method used: Check the first 3 characters after STEAM to see if it contains ID for see if it's not a valid STEAMID format. Both of these 2 value return GetClientAuthId as true :

Tested and approved ☑️

Types of changes

Checklist: