Skip to content
Snippets Groups Projects
Commit be80c0cd authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FEAT #1776 view details message only on debug mode

parent 34a1bdcb
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,9 @@ try { ...@@ -36,7 +36,9 @@ try {
$result = $ids->run(); $result = $ids->run();
if (!$result->isEmpty()) { if (!$result->isEmpty()) {
echo $result; if ($_SESSION['config']['debug'] == 'true') {
echo $result;
}
$_SESSION['securityMessage'] = (string) $result; $_SESSION['securityMessage'] = (string) $result;
$varRedirect = '<script language="javascript">window.location.href=\'' $varRedirect = '<script language="javascript">window.location.href=\''
. $_SESSION['config']['businessappurl'] . $_SESSION['config']['businessappurl']
......
...@@ -51,7 +51,9 @@ $core_tools2->manage_location_bar($page_path, $page_label, $page_id, $init, $lev ...@@ -51,7 +51,9 @@ $core_tools2->manage_location_bar($page_path, $page_label, $page_id, $init, $lev
<?php echo _SECURITY_MESSAGE;?></h1> <?php echo _SECURITY_MESSAGE;?></h1>
<div id="inner_content" class="clearfix"> <div id="inner_content" class="clearfix">
<?php <?php
echo '<p>' . _SECURITY_MESSAGE_DETAILS . ':</p>'; echo '<h3>' . _SECURITY_MESSAGE_DETAILS . ' !</h3>';
echo $_SESSION['securityMessage']; if ($_SESSION['config']['debug'] == 'true') {
echo $_SESSION['securityMessage'];
}
?> ?>
</div> </div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment