Fix for Urlencoding utils, checking for character that doesn't need encoding
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/becb46e6 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/becb46e6 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/becb46e6 Branch: refs/heads/import-master Commit: becb46e62b50ea8d03fd610652dcd189d4ca4e60 Parents: 4923444 Author: suelockwood <[email protected]> Authored: Tue Apr 8 14:20:03 2014 -0400 Committer: suelockwood <[email protected]> Committed: Tue Apr 8 14:20:03 2014 -0400 ---------------------------------------------------------------------- app/core/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/becb46e6/app/core/utils.js ---------------------------------------------------------------------- diff --git a/app/core/utils.js b/app/core/utils.js index 44945e8..6bc8aea 100644 --- a/app/core/utils.js +++ b/app/core/utils.js @@ -12,7 +12,7 @@ // This file creates a set of helper functions that will be loaded for all html -// templates. These functions should be self contained and not rely on any +// templates. These functions should be self contained and not rely on any // external dependencies as they are loaded prior to the application. We may // want to change this later, but for now this should be thought of as a // "purely functional" helper system. @@ -58,7 +58,7 @@ function($, _ ) { addWindowResize: function(fun, key){ onWindowResize[key]=fun; - // You shouldn't need to call it here. Just define it at startup and each time it will loop + // You shouldn't need to call it here. Just define it at startup and each time it will loop // through all the functions in the hash. //app.initWindowResize(); }, @@ -84,7 +84,7 @@ function($, _ ) { safeURLName: function(name){ var testName = name || ""; - var checkforBad = testName.match(/[\$\-/_,+-]/g); + var checkforBad = testName.match(/[\$\-/,+-]/g); return (checkforBad !== null)?encodeURIComponent(name):name; } };
