Fix connection string validation for pgAgent jobs. Fixes #2655

This commit is contained in:
Murtuza Zabuawala 2017-08-21 13:20:07 +01:00 committed by Dave Page
parent 6d7b54eb62
commit d757d8698d

View File

@ -241,7 +241,7 @@ define('pgadmin.node.pga_jobstep', [
} else {
this.errorModel.unset('jstdbname');
var msg,
r = /\s*\b(\w+)\s*=\s*('([^'\\]*(?:\\.[^'\\]*)*)'|\w*)/g;
r = /\s*\b(\w+)\s*=\s*('([^'\\]*(?:\\.[^'\\]*)*)'|[\w|\.]*)/g;
val = this.get('jstconnstr');
if (
_.isUndefined(val) || _.isNull(val) ||