Revision: 34
Author: cphillip
Date: 2006-03-31 11:39:50 -0800 (Fri, 31 Mar 2006)
ViewCVS: http://svn.sourceforge.net/wnmap/?rev=34&view=rev
Log Message:
-----------
Fix a bug that was causing street addresses in points added as clicks on the
map to be shown as '\n' instead of 'n/a'.
* web/js/base64.js:
(encode64, decode64): If the input string is empty, force the output string
to be empty, too.
Modified Paths:
--------------
trunk/src/web/js/base64.js
Modified: trunk/src/web/js/base64.js
===================================================================
--- trunk/src/web/js/base64.js 2006-03-31 19:21:53 UTC (rev 33)
+++ trunk/src/web/js/base64.js 2006-03-31 19:39:50 UTC (rev 34)
@@ -6,6 +6,11 @@
function encode64(input) {
var output = "";
+
+ if (input == "") {
+ return output;
+ }
+
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
@@ -35,6 +40,11 @@
function decode64(input) {
var output = "";
+
+ if (input == "") {
+ return output;
+ }
+
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|