couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 4e9335e
Date Mon, 06 Jan 2014 21:34:40 GMT
Updated Branches:
  refs/heads/master 9068db2df -> 4e9335e0a


null pattern check on safeURLname


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/94a4a734
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/94a4a734
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/94a4a734

Branch: refs/heads/master
Commit: 94a4a734a38643594eb257acad75c08c385a6fe4
Parents: 9068db2
Author: suelockwood <deathbear@apache.org>
Authored: Mon Jan 6 15:27:23 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Jan 6 15:27:23 2014 -0500

----------------------------------------------------------------------
 src/fauxton/app/mixins.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/94a4a734/src/fauxton/app/mixins.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/mixins.js b/src/fauxton/app/mixins.js
index 15af3ee..3679ec1 100644
--- a/src/fauxton/app/mixins.js
+++ b/src/fauxton/app/mixins.js
@@ -56,7 +56,8 @@ function($, _ ) {
   };
 
   mixins.safeURLName = function(name){
-    var checkforBad = name.match(/[\$\-/_,+-]/g);
+    var testName = name || "";
+    var checkforBad = testName.match(/[\$\-/_,+-]/g);
     return (checkforBad !== null)?encodeURIComponent(name):name;
   };
 


Mime
View raw message