Merge pull request #13890 from owncloud/add-no-referrer
Add `rel="noreferrer"` where possible and switch to HTTPS
This commit is contained in:
commit
c6705ab574
|
@ -24,7 +24,7 @@
|
||||||
<?php print_unescaped($_['headers']); ?>
|
<?php print_unescaped($_['headers']); ?>
|
||||||
</head>
|
</head>
|
||||||
<body id="body-public">
|
<body id="body-public">
|
||||||
<noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
|
<?php include('layout.noscript.warning.php'); ?>
|
||||||
<?php print_unescaped($_['content']); ?>
|
<?php print_unescaped($_['content']); ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<?php print_unescaped($_['headers']); ?>
|
<?php print_unescaped($_['headers']); ?>
|
||||||
</head>
|
</head>
|
||||||
<body id="<?php p($_['bodyid']);?>">
|
<body id="<?php p($_['bodyid']);?>">
|
||||||
<noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
|
<?php include('layout.noscript.warning.php'); ?>
|
||||||
<div class="wrapper"><!-- for sticky footer -->
|
<div class="wrapper"><!-- for sticky footer -->
|
||||||
<div class="v-align"><!-- vertically centred box -->
|
<div class="v-align"><!-- vertically centred box -->
|
||||||
<?php if ($_['bodyid'] === 'body-login' ): ?>
|
<?php if ($_['bodyid'] === 'body-login' ): ?>
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<noscript>
|
||||||
|
<div id="nojavascript">
|
||||||
|
<div>
|
||||||
|
<?php print_unescaped(str_replace(
|
||||||
|
['{linkstart}', '{linkend}'],
|
||||||
|
['<a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">', '</a>'],
|
||||||
|
$l->t('This application requires JavaScript for correct operation. Please {linkstart}enable JavaScript{linkend} and reload the page.')
|
||||||
|
)); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</noscript>
|
|
@ -32,7 +32,7 @@
|
||||||
<?php print_unescaped($_['headers']); ?>
|
<?php print_unescaped($_['headers']); ?>
|
||||||
</head>
|
</head>
|
||||||
<body id="<?php p($_['bodyid']);?>">
|
<body id="<?php p($_['bodyid']);?>">
|
||||||
<noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
|
<?php include('layout.noscript.warning.php'); ?>
|
||||||
<div id="notification-container">
|
<div id="notification-container">
|
||||||
<div id="notification"></div>
|
<div id="notification"></div>
|
||||||
<?php if ($_['updateAvailable']): ?>
|
<?php if ($_['updateAvailable']): ?>
|
||||||
|
|
|
@ -215,7 +215,8 @@ class OC_Defaults {
|
||||||
if ($this->themeExist('getShortFooter')) {
|
if ($this->themeExist('getShortFooter')) {
|
||||||
$footer = $this->theme->getShortFooter();
|
$footer = $this->theme->getShortFooter();
|
||||||
} else {
|
} else {
|
||||||
$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank">' .$this->getEntity() . '</a>'.
|
$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
|
||||||
|
' rel="noreferrer">' .$this->getEntity() . '</a>'.
|
||||||
' – ' . $this->getSlogan();
|
' – ' . $this->getSlogan();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -525,11 +525,7 @@ if ($_['suggestedOverwriteCliUrl']) {
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2><?php p($l->t('Version'));?></h2>
|
<h2><?php p($l->t('Version'));?></h2>
|
||||||
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?>
|
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?>
|
||||||
<?php if (OC_Util::getEditionString() === ''): ?>
|
<?php include('settings.development.notice.php'); ?>
|
||||||
<p>
|
|
||||||
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section credits-footer">
|
<div class="section credits-footer">
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="http://owncloud.org/support" target="_blank">
|
<a href="https://owncloud.org/support" target="_blank" rel="noreferrer">
|
||||||
<?php p($l->t( 'Online Documentation' )); ?> ↗
|
<?php p($l->t( 'Online Documentation' )); ?> ↗
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://forum.owncloud.org" target="_blank">
|
<a href="https://forum.owncloud.org" target="_blank" rel="noreferrer">
|
||||||
<?php p($l->t( 'Forum' )); ?> ↗
|
<?php p($l->t( 'Forum' )); ?> ↗
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -29,14 +29,14 @@
|
||||||
<?php if($_['admin']) { ?>
|
<?php if($_['admin']) { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://github.com/owncloud/core/blob/master/CONTRIBUTING.md"
|
<a href="https://github.com/owncloud/core/blob/master/CONTRIBUTING.md"
|
||||||
target="_blank">
|
target="_blank" rel="noreferrer">
|
||||||
<?php p($l->t( 'Bugtracker' )); ?> ↗
|
<?php p($l->t( 'Bugtracker' )); ?> ↗
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="https://owncloud.com" target="_blank">
|
<a href="https://owncloud.com" target="_blank" rel="noreferrer">
|
||||||
<?php p($l->t( 'Commercial Support' )); ?> ↗
|
<?php p($l->t( 'Commercial Support' )); ?> ↗
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -40,10 +40,10 @@
|
||||||
<p class="center">
|
<p class="center">
|
||||||
<?php print_unescaped($l->t('If you want to support the project
|
<?php print_unescaped($l->t('If you want to support the project
|
||||||
<a href="https://owncloud.org/contribute"
|
<a href="https://owncloud.org/contribute"
|
||||||
target="_blank">join development</a>
|
target="_blank" rel="noreferrer">join development</a>
|
||||||
or
|
or
|
||||||
<a href="https://owncloud.org/promote"
|
<a href="https://owncloud.org/promote"
|
||||||
target="_blank">spread the word</a>!'));?>
|
target="_blank" rel="noreferrer">spread the word</a>!'));?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ if($_['passwordChangeSupported']) {
|
||||||
</select>
|
</select>
|
||||||
<?php if (OC_Util::getEditionString() === ''): ?>
|
<?php if (OC_Util::getEditionString() === ''): ?>
|
||||||
<a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
|
<a href="https://www.transifex.com/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
|
||||||
target="_blank">
|
target="_blank" rel="noreferrer">
|
||||||
<em><?php p($l->t('Help translate'));?></em>
|
<em><?php p($l->t('Help translate'));?></em>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -294,9 +294,7 @@ if($_['passwordChangeSupported']) {
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2><?php p($l->t('Version'));?></h2>
|
<h2><?php p($l->t('Version'));?></h2>
|
||||||
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?><br />
|
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?><br />
|
||||||
<?php if (OC_Util::getEditionString() === ''): ?>
|
<?php include('settings.development.notice.php'); ?>
|
||||||
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section credits-footer">
|
<div class="section credits-footer">
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php if (OC_Util::getEditionString() === ''): ?>
|
||||||
|
<p>
|
||||||
|
<?php print_unescaped(str_replace(
|
||||||
|
[
|
||||||
|
'{communityopen}',
|
||||||
|
'{githubopen}',
|
||||||
|
'{licenseopen}',
|
||||||
|
'{linkclose}',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'<a href="https://owncloud.org/contact" target="_blank" rel="noreferrer">',
|
||||||
|
'<a href="https://github.com/owncloud" target="_blank" rel="noreferrer">',
|
||||||
|
'<a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer">',
|
||||||
|
'</a>',
|
||||||
|
],
|
||||||
|
$l->t('Developed by the {communityopen}ownCloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}<abbr title="Affero General Public License">AGPL</abbr>{linkclose}.')
|
||||||
|
)); ?>
|
||||||
|
</p>
|
||||||
|
<?php endif; ?>
|
Loading…
Reference in New Issue