optionhelp - support links markdown style (#2198)

This commit is contained in:
Andrew Bauer 2018-09-03 08:56:52 -05:00 committed by Isaac Connor
parent 36322f9129
commit e5a2581dcc
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ $optionHelpIndex = preg_replace( '/^ZM_/', '', $_REQUEST['option'] );
$optionHelpText = !empty($OLANG[$optionHelpIndex])?$OLANG[$optionHelpIndex]['Help']:$config[$_REQUEST['option']]['Help'];
$optionHelpText = validHtmlStr($optionHelpText);
$optionHelpText = preg_replace( "/~~/", "<br/>", $optionHelpText );
$optionHelpText = preg_replace( "/\[(.+)\]\((.+)\)/", "<a href=\"$2\" target=\"_blank\">$1</a>", $optionHelpText );
$focusWindow = true;