break;
case 2:
- $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+ if (strlen($_POST['admin_password'])) {
+ $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+ } else {
+ $cfg['admin_password'] = '';
+ }
jirafeau_export_cfg($cfg);
break;
jirafeau_export_cfg($cfg);
echo '<div class="message"><p>' .
t('Jirafeau is now fully operational') . ':' .
- '<br /><a href="' . $cfg['web_root'] . '">' .
+ '<br /><a href="./">' .
$cfg['web_root'].'</a></p></div>';
}
break;