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:
parent
16eb077150
commit
23c77e243c
@ -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;
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user