Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Release 2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
intelliot committed Sep 29, 2020
1 parent 936ab79 commit 4190949
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/app/markets/markets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') ||
Expand Down
4 changes: 0 additions & 4 deletions src/common/txsplain.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ angular.module('txsplain', [])
return list
}

function escapeHTML(d) {
return d.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
}

function decodeHex(hex) {
var str = ''
for (var i = 0; i < hex.length; i += 2) {
Expand Down

0 comments on commit 4190949

Please sign in to comment.