From 01de288c350392f05002ea8a5bb08de71f920113 Mon Sep 17 00:00:00 2001 From: javi Date: Fri, 29 Nov 2013 12:46:25 +0100 Subject: [PATCH] fixed #96 --- lib/cartodb/server_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index f3f1acef..27baadba 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -339,7 +339,7 @@ module.exports = function(){ // skip looking up user_password if postgres_auth_pass // doesn't contain the "user_password" label - if ( ! auth_pass.match(/\buser_password\b/) ) return null; + if (!auth_pass || ! auth_pass.match(/\buser_password\b/) ) return null; cartoData.getDatabasePassword(req, this); },