X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/2dc4984ad57dfcb0ded829bfc9d45493484fe6e3..ebcb7402a9776c5881fbba4d1d60ad50e41a097d:/f.php?ds=inline diff --git a/f.php b/f.php index 5fd8575..2cf19ef 100644 --- a/f.php +++ b/f.php @@ -97,10 +97,10 @@ if (!empty($delete_code) && $delete_code == $link['link_code']) { <legend> <?php echo t('CONFIRM_DEL') ?> </legend> <table> <tr><td> - <?php echo t('GONNA_DEL') . ' "' . htmlspecialchars($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ').' ?> + <?php echo t('GONNA_DEL') . ' "' . jirafeau_escape($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ').' ?> </td></tr> <tr><td> - <?php echo t('USING_SERIVCE'). ' <a href="tos.php">' . t('TOS') . '</a>.' ?> + <?php echo t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' ?> </td></tr> <tr><td> <input type="submit" id="submit_delete" value="<?php echo t('DELETE'); ?>" @@ -147,7 +147,7 @@ if (!empty($link['key'])) { '<input type = "password" name = "key" />' . '</td></tr>' . '<tr><td>' . - t('USING_SERIVCE'). ' <a href="tos.php">' . t('TOS') . '</a>.' . + t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' . '</td></tr>'; if ($link['onetime'] == 'O') { @@ -193,12 +193,12 @@ if (!$password_challenged && !$do_download && !$do_preview) { echo '<div>' . '<form action="f.php" method="post" id="submit_post" class="form download">'; ?> <input type = "hidden" name = "jirafeau" value = "<?php echo JIRAFEAU_VERSION ?>"/><?php - echo '<fieldset><legend>' . htmlspecialchars($link['file_name']) . '</legend><table>' . + echo '<fieldset><legend>' . jirafeau_escape($link['file_name']) . '</legend><table>' . '<tr><td>' . - t('NOW_DOWNLOADING') . ' "' . htmlspecialchars($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ').' . + t('NOW_DOWNLOADING') . ' "' . jirafeau_escape($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ').' . '</td></tr>' . '<tr><td>' . - t('USING_SERIVCE'). ' <a href="tos.php">' . t('TOS') . '</a>.' . + t('USING_SERVICE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' . '</td></tr>'; if ($link['onetime'] == 'O') {