Closed Rushaway closed 4 months ago
nb: 3b1c56b I was thinking break can be a nice alt, but it's not a suitable solution
I had this issue as well. I accidentally banned one of the bots in Left 4 Dead 2 in-game and 'BOT' was added to the ban as their SteamID. This was fine pre-1.7 but causes the page to refuse to load now. Fixed by running the following MySQL commands ('sourcebans' being my database):
USE sourcebans
DELETE FROM sb_bans WHERE authid = 'BOT';
Description
Check if the Steamid format is valid by using
isValidID()
from SteamID.phpFor #900 I check if isset & is not empty (bcs they can be empty with sm_banip) For #906 No need to check if set bcs all comms are based on steamid system (no ip supported)
Motivation and Context
Prevent bad format to break page view. Give this
$data['steamid'] = 'STEAM_0:0:00000000';
when theisValid
return false.How Has This Been Tested?
For #900 I have a ban in db with
STEAM_ID_STOP_IGNORING_RETVALS
as SteamID inauthid
colume (also tested with a player name..) For #906 I have a comms in db withSTEAM_ID_STOP_IGNORING_RETVALS
as SteamID inauthid
columeScreenshots (if appropriate):
Types of changes
Checklist: