It requires changes to the PHP side and our cbvalidate jQuery plugin so you'll need to wait for next nightly release. New nightly release will be today after the MR is reviewed, approved, and merged (we use peer review between us 3 to ensure code quality).
You can try the below quickfix, but it'll require your site to stay in debug mode unless you've a JS compression to minify the JS file.
IN: libraries/CBLib/CB/Legacy/cbValidator.php
ON: Lines 73 - 75
FROM:
Code:
} elseif ( $rule == 'pattern' ) {
$params = addslashes( $params );
}
TO:
Code:
} elseif ( $rule == 'pattern' ) {
$params = urlencode( $params );
}
IN: components/com_comprofiler/js/jquery/jquery.cbvalidate.js
ON: Lines 674 - 675
FROM:
Code:
if ( typeof params === 'string' ) {
var delimiter = params.substr( 0, 1 );
TO:
Code:
if ( typeof params === 'string' ) {
params = decodeURIComponent( params );
var delimiter = params.substr( 0, 1 );
Note the above will likely be wrong line numbers due to some changes further up in the validation file. You'll need to find the validation rule as follows.
Code:
$.validator.addMethod( 'pattern', function( value, element, params ) {
Again this won't work unless you compress the JS to update the minified version or keep your site in debug mode. Also note that some of your issue could be caused by out of date jQuery validate plugin, which has been updated for next nightly as well.