diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-23 09:14:54 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-23 09:14:54 +0100 |
commit | 61c5717281eddd806926c30f4f3c5c83774b341f (patch) | |
tree | a9aa9483fce471ab55d295a2b59f845933aa05ad /lib | |
parent | a25872e0349c3c93a5dea6ce0050f3db207c8dce (diff) | |
parent | 6ad957906e26b181e597abc25eeed0acebd43482 (diff) | |
download | nextcloud-server-61c5717281eddd806926c30f4f3c5c83774b341f.tar.gz nextcloud-server-61c5717281eddd806926c30f4f3c5c83774b341f.zip |
Merge pull request #23463 from owncloud/lets-consistently-use-no-referer
Consistently use rel=noreferrer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 | ||||
-rw-r--r-- | lib/private/config.php | 2 | ||||
-rw-r--r-- | lib/private/util.php | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/base.php b/lib/base.php index 16db8f4dcd2..1a3dbbaa56a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -274,7 +274,7 @@ class OC { $l->t('Cannot write into "config" directory!'), $l->t('This can usually be fixed by ' . '%sgiving the webserver write access to the config directory%s.', - array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')) + array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank" rel="noreferrer">', '</a>')) ); } } diff --git a/lib/private/config.php b/lib/private/config.php index 368dafd0460..9bb5c299463 100644 --- a/lib/private/config.php +++ b/lib/private/config.php @@ -239,7 +239,7 @@ class Config { throw new HintException( "Can't write into config directory!", 'This can usually be fixed by ' - .'<a href="' . $url . '" target="_blank">giving the webserver write access to the config directory</a>.'); + .'<a href="' . $url . '" target="_blank" rel="noreferrer">giving the webserver write access to the config directory</a>.'); } // Try to acquire a file lock diff --git a/lib/private/util.php b/lib/private/util.php index 88d78ad83c6..b320394f26d 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -657,7 +657,7 @@ class OC_Util { 'error' => $l->t('Cannot write into "config" directory'), 'hint' => $l->t('This can usually be fixed by ' . '%sgiving the webserver write access to the config directory%s.', - array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')) + array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank" rel="noreferrer">', '</a>')) ); } } @@ -673,7 +673,7 @@ class OC_Util { 'hint' => $l->t('This can usually be fixed by ' . '%sgiving the webserver write access to the apps directory%s' . ' or disabling the appstore in the config file.', - array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')) + array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank" rel="noreferrer">', '</a>')) ); } } @@ -687,7 +687,7 @@ class OC_Util { $errors[] = array( 'error' => $l->t('Cannot create "data" directory (%s)', array($CONFIG_DATADIRECTORY)), 'hint' => $l->t('This can usually be fixed by ' - . '<a href="%s" target="_blank">giving the webserver write access to the root directory</a>.', + . '<a href="%s" target="_blank" rel="noreferrer">giving the webserver write access to the root directory</a>.', array($urlGenerator->linkToDocs('admin-dir_permissions'))) ); } @@ -695,7 +695,7 @@ class OC_Util { //common hint for all file permissions error messages $permissionsHint = $l->t('Permissions can usually be fixed by ' . '%sgiving the webserver write access to the root directory%s.', - array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')); + array('<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank" rel="noreferrer">', '</a>')); $errors[] = array( 'error' => 'Data directory (' . $CONFIG_DATADIRECTORY . ') not writable by ownCloud', 'hint' => $permissionsHint |