quote:
Originally posted by Chancer
quote:
Originally posted by Spunky
In scrape.php edit the pickSteamURL function to check for a valid id and return an error code or redirect to an error page
js code:
private function pickSteamURL($userID) {
//put check in for $userID here
if (is_numeric($userID)){
return "http://steamcommunity.com/profiles/" . $userID;
} else {
return "http://steamcommunity.com/id/" . $userID;
}
}
But what if any user sets his ID to a number code?
Yes, that is a limitation at the moment, and I have absolutely no clue how I would resolve that.