diff --git a/web/apps/admin/tabs/mempool.php b/web/apps/admin/tabs/mempool.php index 5b0acb45..f71fe0bb 100644 --- a/web/apps/admin/tabs/mempool.php +++ b/web/apps/admin/tabs/mempool.php @@ -59,7 +59,7 @@ - + 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/address_info.php b/web/apps/explorer/address_info.php index 979d2166..f065175f 100644 --- a/web/apps/explorer/address_info.php +++ b/web/apps/explorer/address_info.php @@ -124,8 +124,8 @@ 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..a01c90c2 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=""> @@ -598,7 +598,7 @@ function getInnerHTML(DOMNode $node): string {