Improves entry url encoding.

This commit is contained in:
Lars Jung 2012-08-11 02:21:12 +02:00
parent 9ac5973907
commit 87b3c6bfee

View file

@ -8,6 +8,7 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax', 'core/event'], f
return href return href
.replace(/\/+/g, '/') .replace(/\/+/g, '/')
.replace(/ /g, '%20')
.replace(/'/g, '%27') .replace(/'/g, '%27')
.replace(/\[/g, '%5B') .replace(/\[/g, '%5B')
.replace(/\]/g, '%5D') .replace(/\]/g, '%5D')