1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Feature: Allow HTML in custom payment-provider #1700

This commit is contained in:
Hillel Coren 2017-10-09 11:44:38 +03:00
parent 16eb077150
commit 23c77e243c
2 changed files with 6 additions and 2 deletions

View File

@ -257,7 +257,7 @@ class AccountGatewayController extends BaseController
if (! $value && in_array($field, ['testMode', 'developerMode', 'sandbox'])) {
// do nothing
} elseif ($gatewayId == GATEWAY_CUSTOM) {
$config->$field = strip_tags($value);
$config->$field = Utils::isNinjaProd() ? strip_tags($value) : $value;
} else {
$config->$field = $value;
}

View File

@ -329,7 +329,11 @@
</div>
<div class="panel-body">
{!! nl2br(e($customGatewayText)) !!}
@if (Utils::isNinjaProd())
{!! nl2br(e($customGatewayText)) !!}
@else
{!! $customGatewayText !!}
@endif
</div>
<div class="modal-footer">