From b476d9dcbff061759e5eda840c3e08190fde4d36 Mon Sep 17 00:00:00 2001 From: Jason David Davies Date: Wed, 16 Sep 2009 14:46:53 +0000 Subject: Make generateSecret() generate valid UTF-8 in oauth and cookie_auth tests. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815813 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/cookie_auth.js | 4 +++- share/www/script/test/oauth.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/www/script/test/cookie_auth.js b/share/www/script/test/cookie_auth.js index d029e851..d82d302a 100644 --- a/share/www/script/test/cookie_auth.js +++ b/share/www/script/test/cookie_auth.js @@ -20,12 +20,14 @@ couchTests.cookie_auth = function(debug) { // Simple secret key generator function generateSecret(length) { + var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var secret = ''; for (var i=0; i