krileon wrote: 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:TO:Code:} elseif ( $rule == 'pattern' ) { $params = addslashes( $params ); }Code:} elseif ( $rule == 'pattern' ) { $params = urlencode( $params ); }
IN: components/com_comprofiler/js/jquery/jquery.cbvalidate.js
ON: Lines 674 - 675
FROM:TO:Code:if ( typeof params === 'string' ) { var delimiter = params.substr( 0, 1 );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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: It'll be a nightly build of CB 2.x.
Please Log in or Create an account to join the conversation.
edmundcheong wrote:
krileon wrote: It'll be a nightly build of CB 2.x.
is this the nightly build which has rectified the problem (located in Category: CBSubs GPL Download Area)? Just to confirm.
pkg_communitybuilder_2.0.0.ci.2014.10.08.00.20+4903f48c9.zip
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.