mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-05 21:23:23 +02:00
Improves entry url encoding.
This commit is contained in:
parent
9ac5973907
commit
87b3c6bfee
@ -8,6 +8,7 @@ modulejs.define('model/entry', ['_', 'core/types', 'core/ajax', 'core/event'], f
|
||||
|
||||
return href
|
||||
.replace(/\/+/g, '/')
|
||||
.replace(/ /g, '%20')
|
||||
.replace(/'/g, '%27')
|
||||
.replace(/\[/g, '%5B')
|
||||
.replace(/\]/g, '%5D')
|
||||
|
Loading…
x
Reference in New Issue
Block a user