diff --git a/web/apps/apps.functions.php b/web/apps/apps.functions.php index 0585d395..ed6c6469 100755 --- a/web/apps/apps.functions.php +++ b/web/apps/apps.functions.php @@ -17,3 +17,7 @@ function explorer_address_link2($address, $short= false) { } return ''.$text.''; } + +function safeDisplay($string) { + return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); +} diff --git a/web/apps/explorer/accounts.php b/web/apps/explorer/accounts.php index 77fbcade..0f43964b 100755 --- a/web/apps/explorer/accounts.php +++ b/web/apps/explorer/accounts.php @@ -19,7 +19,7 @@ diff --git a/web/apps/explorer/address.php b/web/apps/explorer/address.php index 604f11e9..11d6944a 100755 --- a/web/apps/explorer/address.php +++ b/web/apps/explorer/address.php @@ -153,7 +153,7 @@ - + diff --git a/web/apps/explorer/mempool.php b/web/apps/explorer/mempool.php index d2d0d6dc..ed0f9bd9 100755 --- a/web/apps/explorer/mempool.php +++ b/web/apps/explorer/mempool.php @@ -47,7 +47,7 @@ - + diff --git a/web/apps/explorer/smart_contract.php b/web/apps/explorer/smart_contract.php index e50ba77e..986b0b3f 100644 --- a/web/apps/explorer/smart_contract.php +++ b/web/apps/explorer/smart_contract.php @@ -317,7 +317,7 @@ + value="" placeholder="Key"> @@ -444,7 +444,7 @@ ?> + value="" placeholder=""> diff --git a/web/apps/explorer/tx.php b/web/apps/explorer/tx.php index 03621298..1c58efaf 100755 --- a/web/apps/explorer/tx.php +++ b/web/apps/explorer/tx.php @@ -120,7 +120,7 @@ Message - + Public key @@ -195,7 +195,7 @@ Params - ", $sc_data['params']) ?> + ", array_map('safeDisplay', $sc_data['params'])) ?>