HomePhabricator

Validate input as hex string

Authored by EBernhardson.

Description

Validate input as hex string

If the string is the right length but not actually a hex uuid it will
spam the log with warnings.

Have both use ctype_xdigit (HEX_LEN was previously using custom
regex).

Bug: T91647
Change-Id: I1685877c9267f3c09c55e73aa2e4e846bb6b5b60