diff --git a/package.json b/package.json index fca3909..b9c16d0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Ripple, Inc.", "name": "ripplecharts", - "version": "2.4.3", + "version": "2.4.4", "homepage": "http://xrpcharts.ripple.com", "licenses": { "type": "ISC", diff --git a/src/app/markets/markets.js b/src/app/markets/markets.js index 22cc319..b892eda 100644 --- a/src/app/markets/markets.js +++ b/src/app/markets/markets.js @@ -632,6 +632,16 @@ function MarketsCtrl($scope, $state, $location, gateways) { {currency: 'USD', issuer: 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B'} } + // Allow only [^0-9a-zA-Z_] + $scope.base = { + currency: $scope.base.currency.replace(/\W/g, ''), + issuer: $scope.base.issuer.replace(/\W/g, '') + } + $scope.counter = { + currency: $scope.counter.currency.replace(/\W/g, ''), + issuer: $scope.counter.issuer.replace(/\W/g, ''), + } + $scope.range = $state.params.range || store.session.get('range') || store.get('range') || diff --git a/src/common/txsplain.js b/src/common/txsplain.js index cd289d6..3a84203 100644 --- a/src/common/txsplain.js +++ b/src/common/txsplain.js @@ -112,10 +112,6 @@ angular.module('txsplain', []) return list } -function escapeHTML(d) { - return d.replace(/&/g,'&').replace(//g,'>'); -} - function decodeHex(hex) { var str = '' for (var i = 0; i < hex.length; i += 2) {