Browse Source

Do not strip spaced in room path parts.

pull/195/head
Simon Eisenmann 10 years ago
parent
commit
22c1e889cc
  1. 4
      static/js/services/resturl.js

4
static/js/services/resturl.js

@ -20,7 +20,7 @@
*/ */
"use strict"; "use strict";
define(["underscore", "jquery"], function(_, $) { define(["underscore"], function(_) {
// restURL // restURL
return ["globalContext", "$window", function(context, $window) { return ["globalContext", "$window", function(context, $window) {
@ -49,8 +49,6 @@ define(["underscore", "jquery"], function(_, $) {
// Skip empty parts, effectly stripping spurious slashes. // Skip empty parts, effectly stripping spurious slashes.
return; return;
} }
// Trim parts. removing white space from start and end.
p = $.trim(p);
nn.push(p); nn.push(p);
// URL encode. // URL encode.
p = $window.encodeURIComponent(p); p = $window.encodeURIComponent(p);

Loading…
Cancel
Save