Skip to content

Loading…

Fix for #83 #84

Merged
merged 1 commit into from

2 participants

@vendruscolo

Changed the entity of the € sign from ¤ to €. The Unicode
character number (0x20AC) was right.
See http://www.fileformat.info/info/unicode/char/20ac/index.htm
and http://www.mail-archive.com/use-revolution@lists.runrev.com/msg109291.html

@vendruscolo vendruscolo Fix for issue #83.
Changed the entity of the € sign from `¤` to `€`. The Unicode
character number (0x20AC) was right.
See http://www.fileformat.info/info/unicode/char/20ac/index.htm
and http://www.mail-archive.com/use-revolution@lists.runrev.com/msg109291.html
7babc82
@chriso
Owner

Thanks

@chriso chriso merged commit 41b9acc into chriso:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 12, 2012
  1. @vendruscolo

    Fix for issue #83.

    vendruscolo committed
    Changed the entity of the € sign from `¤` to `€`. The Unicode
    character number (0x20AC) was right.
    See http://www.fileformat.info/info/unicode/char/20ac/index.htm
    and http://www.mail-archive.com/use-revolution@lists.runrev.com/msg109291.html
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/entities.js
  2. +2 −2 test/filter.test.js
View
2 lib/entities.js
@@ -3,7 +3,7 @@ var entities = {
'¡': '\u00a1',
'¢': '\u00a2',
'£': '\u00a3',
- '¤': '\u20ac',
+ '€': '\u20ac',
'¥': '\u00a5',
'¦': '\u0160',
'§': '\u00a7',
View
4 test/filter.test.js
@@ -115,7 +115,7 @@ module.exports = {
assert.equal('&', Filter.sanitize('&').entityDecode());
assert.equal('&&', Filter.sanitize('&&').entityDecode());
assert.equal('""', Filter.sanitize('""').entityDecode());
- assert.equal('', Filter.sanitize('¤').entityDecode());
+ assert.equal('', Filter.sanitize('€').entityDecode());
assert.equal("'", Filter.sanitize("'").entityDecode());
assert.equal("'", Filter.sanitize("'").entityDecode());
},
@@ -125,7 +125,7 @@ module.exports = {
assert.equal('&&', Filter.sanitize('&&').entityEncode());
assert.equal(''', Filter.sanitize("'").entityEncode());
assert.equal('""', Filter.sanitize('""').entityEncode());
- assert.equal('¤', Filter.sanitize('').entityEncode());
+ assert.equal('€', Filter.sanitize('').entityEncode());
},
'test #xss()': function () {
Something went wrong with that request. Please try again.