Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
[#980905] Ensure we save urls as all lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed Mar 13, 2014
1 parent e1064b8 commit 05c2d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utilities.js
Expand Up @@ -14,11 +14,11 @@ module.exports.embedURL = function( user, id ) {

var parsedURL = url.parse( config.USER_SUBDOMAIN );

return parsedURL.protocol + "//" + user + "." + parsedURL.host + "/popcorn/" + this.generateIdString( id ) + "_";
return parsedURL.protocol + "//" + user.toLowerCase() + "." + parsedURL.host + "/popcorn/" + this.generateIdString( id ) + "_";
};

module.exports.embedShellPath = function( user, id ) {
return "/" + user + "/popcorn/" + this.generateIdString( id );
return "/" + user.toLowerCase() + "/popcorn/" + this.generateIdString( id );
};

module.exports.embedShellURL = function( user, id ) {
Expand All @@ -28,7 +28,7 @@ module.exports.embedShellURL = function( user, id ) {

var parsedURL = url.parse( config.USER_SUBDOMAIN );

return parsedURL.protocol + "//" + user + "." + parsedURL.host + "/popcorn/" + this.generateIdString( id );
return parsedURL.protocol + "//" + user.toLowerCase() + "." + parsedURL.host + "/popcorn/" + this.generateIdString( id );
};

module.exports.error = function( code, msg ) {
Expand Down

0 comments on commit 05c2d83

Please sign in to comment.