Skip to content

Commit 81d3842

Browse files
committed
PRESIDECMS-3244 - Added the fix to allow plus sign for query string field on link picker
1 parent a5eb24b commit 81d3842

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/services/validation/CoreValidators.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ component validationProvider=true {
364364
}
365365

366366
public boolean function queryString( required string fieldName, any value="" ) validatorMessage="cms:validation.queryString.default" {
367-
return IsEmpty( arguments.value ) || ReFindNoCase( "^([\w-]+(=[\w-]*)?(&[\w-]+(=[\w-,]*)?)*)?$", arguments.value );
367+
return IsEmpty( arguments.value ) || ReFindNoCase( "^([\w-]+(=[\w-+,]*)?(&[\w-]+(=[\w-+,]*)?)*)?$", arguments.value );
368368
}
369369
public string function queryString_js() validatorMessage="validationExtras:validation.simpleUrl.default" {
370-
return "function( value, el, params ){ return !value.length || value.match( /^([\w-]+(=[\w-]*)?(&[\w-]+(=[\w-,]*)?)*)?$/i ) !== null }";
370+
return "function( value, el, params ){ return !value.length || value.match( /^([\w-]+(=[\w-+,]*)?(&[\w-]+(=[\w-+,]*)?)*)?$/i ) !== null }";
371371
}
372372
}

0 commit comments

Comments
 (0)