Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed wrong sid to number calculation

  • Loading branch information...
commit 964397e131939db69857cd168d16381e894937ba 1 parent cad1524
@deltasquare4 deltasquare4 authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/up.js
View
5 lib/up.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -263,8 +262,8 @@ UpServer.prototype.defaultWS = function (req, res, next) {
var result = 0;
sid = sid.split('');
- for(var index in glyphs) {
- result = (result * 64) + glyphs.indexOf(glyphs[index]);
+ for(var index = sid.length - 1; index >= 0; index--) {
+ result = (result * 64) + glyphs.indexOf(sid[index]);
}
sid = result;
}
Please sign in to comment.
Something went wrong with that request. Please try again.