From: j-broo <jordan.margaritov@gmail.com>
Date: Mon, 11 Nov 2019 23:07:23 +0000 (+0000)
Subject: Open TOS in new tab, link protected.
X-Git-Tag: 4.1.0~9
X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/9cc17fe0ab37c643201faaa3879740bdb1937dc6?ds=sidebyside;hp=374e4718ddacfbaab32f57f8e0ab828520e8081e

Open TOS in new tab, link protected.
---

diff --git a/f.php b/f.php
index be7ce41..79cbe8e 100644
--- a/f.php
+++ b/f.php
@@ -100,7 +100,7 @@ if (!empty($delete_code) && $delete_code == $link['link_code']) {
              <?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_SERIVCE'). ' <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_SERIVCE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' .
              '</td></tr>';
 
         if ($link['onetime'] == 'O') {
@@ -198,7 +198,7 @@ if (!$password_challenged && !$do_download && !$do_preview) {
              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_SERIVCE'). ' <a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>.' .
              '</td></tr>';
 
     if ($link['onetime'] == 'O') {