diff --git a/includes/core/class-validation.php b/includes/core/class-validation.php index 861c8997..7eb44fb4 100644 --- a/includes/core/class-validation.php +++ b/includes/core/class-validation.php @@ -295,7 +295,10 @@ if ( ! class_exists( 'um\core\Validation' ) ) { if ( ! $string ) { return true; } - if ( ! preg_match( '/(^\S+)#(\d+)$/', trim( $string ) ) ) { + if ( substr_count( $string, '#' ) > 1 ) { + return false; + } + if ( ! preg_match( '/(\S+)#(\d+)$/', trim( $string ) ) ) { return false; } return true;