diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bbcode.php | 4 | ||||
-rw-r--r-- | include/conversation.php | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index b195701dc..ea04eb470 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -257,7 +257,9 @@ function bb_parse_crypt($match) { $x = random_string(); - $Text = '<br /><div id="' . $x . '"><img class="cursor-pointer" src="' . z_root() . '/images/lock_icon.svg" onclick="red_decrypt(\'' . $algorithm . '\',\'' . $hint . '\',\'' . $match[2] . '\',\'#' . $x . '\');" alt="' . t('Encrypted content') . '" title="' . t('Encrypted content') . '" /></div><br />'; + $f = ((in_array($algorithm, ['AES-256', 'rot13', 'triple-rot13'])) ? 'hz_decrypt' : 'red_decrypt'); + + $Text = '<br /><div id="' . $x . '"><img class="cursor-pointer" src="' . z_root() . '/images/lock_icon.svg" onclick="' . $f . '(\'' . $algorithm . '\',\'' . $hint . '\',\'' . $match[2] . '\',\'#' . $x . '\');" alt="' . t('Encrypted content') . '" title="' . t('Encrypted content') . '" /></div><br />'; return $Text; } diff --git a/include/conversation.php b/include/conversation.php index b0e81b7e2..05d1cdc26 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1396,7 +1396,7 @@ function hz_status_editor($a, $x, $popup = false) { $cipher = get_pconfig($x['profile_uid'], 'system', 'default_cipher'); if(! $cipher) - $cipher = 'aes256'; + $cipher = 'AES-256'; if(array_key_exists('catsenabled',$x)) $catsenabled = $x['catsenabled']; |