5
validateuseragent
validate_user_agent
SYNOPSIS
validate_user_agent($agent)
DESCRIPTION
CODE
- function validate_user_agent($agent) {
- return preg_match('/^[a-zA-Z0-9 \;\:\.\-\)\(\/\@\]\[\+\~\_\,\?\=\{\}\*\|\&\#\!]+$/', $agent);
- }
validate_user_agent($agent)
Commentaires