]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
Suggestion: Open footer links in new tabs, with link hijacking protection. Keeps...
authorj-broo <jordan.margaritov@gmail.com>
Mon, 11 Nov 2019 21:41:50 +0000 (21:41 +0000)
committerJerome Jutteau <jerome@jutteau.fr>
Mon, 11 Nov 2019 23:16:59 +0000 (00:16 +0100)
lib/template/footer.php

index 8647b2eb7d12d4a472bf11dde4f7c89e619e5337..21ea5ad0be765e146b585c8a249bb8316be073ef 100644 (file)
@@ -1,17 +1,16 @@
-
 <div id="copyright">
     <p>
         <!-- Project links -->
         <?php
           echo t('MADE_WITH') .
-            ' <a href="https://gitlab.com/mojo42/Jirafeau">' . t('JI_PROJECT') . '</a>' .
-            ' (<a href="https://www.gnu.org/licenses/agpl.html"><abbr title="GNU Affero General Public License v3">AGPL-3.0</abbr></a>)';
+            ' <a href="https://gitlab.com/mojo42/Jirafeau" target="_blank" rel="noopener noreferrer">' . t('JI_PROJECT') . '</a>' .
+            ' (<a href="https://www.gnu.org/licenses/agpl.html" target="_blank" rel="noopener noreferrer"><abbr title="GNU Affero General Public License v3">AGPL-3.0</abbr></a>)';
         ?>
         <!-- Installation dependend links -->
         <?php
         if (false === empty($cfg['installation_done'])) {
             echo ' <span>|</span> ';
-            echo '<a href="tos.php">' . t('TOS') . '</a>';
+            echo '<a href="tos.php" target="_blank" rel="noopener noreferrer">' . t('TOS') . '</a>';
         }
         ?>
     </p>

patrick-canterino.de