From 090a48eb85b88bbf88d53a916ad487e0eb07304c Mon Sep 17 00:00:00 2001 From: jvelilla Date: Wed, 16 Dec 2015 10:03:35 -0300 Subject: [PATCH] Updated class CMS_TOKEN_GENERATOR. Remove once in sha1 feature. Updated encoded_base_64 to base_64 --- modules/session_auth/site/cms_token_generator.e | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/session_auth/site/cms_token_generator.e b/modules/session_auth/site/cms_token_generator.e index ba1adb8..d18bd90 100644 --- a/modules/session_auth/site/cms_token_generator.e +++ b/modules/session_auth/site/cms_token_generator.e @@ -58,7 +58,7 @@ feature {NONE} -- Implementation l_array.force (c.item.as_integer_8, i) i := i + 1 end - Result := encode_base_64 (l_array) + Result := base_64 (l_array) end sha1_string (a_str: STRING): STRING @@ -71,14 +71,14 @@ feature {NONE} -- Implementation sha1: SHA1 -- Create a SHA1 object. - once + do create Result.make end feature -- Encoding - encode_base_64 (bytes: SPECIAL [INTEGER_8]): STRING_8 + base_64 (bytes: SPECIAL [INTEGER_8]): STRING_8 -- Encodes a byte array into a STRING doing base64 encoding. local l_output: SPECIAL [INTEGER_8] @@ -130,7 +130,7 @@ feature -- Encoding l_output [ptr] := char.code.as_integer_8 ptr := ptr + 1 end - Result := "" + create Result.make_empty across l_output as elem loop