BUG 8558 Invalid HTML on Wrong Password Error page SOLVED

- It is observed that the error message comes duplicate one red and one black, the problem is that the message does not recognize the quotes, plus the xml type ShowMessage had defined the (type caption) no longer used.
- first performed the escape sequence to make the red color is recognized, that in the generation of formPost file in the rafter is ShowMessage (type-caption) by its equivalent, (type-text) (mode-view).
This commit is contained in:
Marco Antonio Nina
2012-03-08 17:07:53 -04:00
parent 4e6ade5d1b
commit 2acd979c3d
2 changed files with 18 additions and 20 deletions

View File

@@ -60,7 +60,6 @@
<b>please contact to your system administrator.</b>';
}
/**
* by default show the case info, for the recently created case
* you can change it or redirect to another page
@@ -73,8 +72,7 @@
catch ( Exception $e ) {
$G_PUBLISH = new Publisher;
$suggest_message = "This web entry should be regenerated, please contact to your system administrator.";
$aMessage['MESSAGE'] = '<font color="red"><pre>'.$e->getMessage().'</pre>'.$suggest_message .'</font>';
$aMessage['MESSAGE'] = '<font color=\'red\'><pre>'.$e->getMessage().'</pre>'.$suggest_message .'</font>';
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage( 'publish', 'blank' );
}

View File

@@ -3,7 +3,7 @@
<TITLE type="title">
<en>Error</en>
</TITLE>
<MESSAGE type="caption" enableHTML="1">
<MESSAGE type="text" enableHtml="1" mode="view">
<en/>
</MESSAGE>
</dynaForm>