[Pkg-javascript-commits] [backbone] 76/211: encodeURIComponent this.id

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit aab49ebded7eeb78f12de654e18285cdfd9e7b12
Author: Johannes J. Schmidt <schmidt at netzmerk.com>
Date:   Mon Jan 31 17:10:50 2011 +0100

    encodeURIComponent this.id
    
    in Backbone.Model.prototype.url
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 2341c17..b9201a8 100644
--- a/backbone.js
+++ b/backbone.js
@@ -307,7 +307,7 @@
     url : function() {
       var base = getUrl(this.collection) || this.urlRoot || urlError();
       if (this.isNew()) return base;
-      return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + this.id;
+      return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + encodeURIComponent(this.id);
     },
 
     // **parse** converts a response into the hash of attributes to be `set` on

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list