Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter SwimTopia Lorin

    (@swimtopia-lorin)

    I did some googling and found the offending regex code on line 727 of ../testimonials-widget/includes/libraries/aihrus-framework/class-aihrus-settings.php

    	public static function validate_terms( $input, $default ) {
    		if ( preg_match( '#^(([\w- ]+)(,\s?)?)+$#', $input ) )
    			return preg_replace( '#,\s*$#', '', $input );
    
    		return $default;
    	}

    add a backslash before the -:

    		if ( preg_match( '#^(([\w- ]+)(,\s?)?)+$#', $input ) )
    		if ( preg_match( '#^(([\w\- ]+)(,\s?)?)+$#', $input ) )

    Hope that helps someone!

Viewing 1 replies (of 1 total)