diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-08 21:16:08 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-08 21:16:08 -0500 |
commit | 9309217ecb760a9070d9b69c051e167888aa5458 (patch) | |
tree | e2f8b8d8a3b1971154c18b83a766c8065fbdebda /lib/private/legacy | |
parent | f6a4028fad57ff2be8752b17c66b990e042cfdf9 (diff) | |
download | nextcloud-server-9309217ecb760a9070d9b69c051e167888aa5458.tar.gz nextcloud-server-9309217ecb760a9070d9b69c051e167888aa5458.zip |
Fix escaped HTML on error pages
* fixes #4655
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/util.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index d49599cb8a1..7750e84f065 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -669,9 +669,8 @@ class OC_Util { if (!is_writable(OC::$configDir) or !is_readable(OC::$configDir)) { $errors[] = array( '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" rel="noreferrer">', '</a>')) + 'hint' => $l->t('This can usually be fixed by giving the webserver write access to the config directory. See %s', + [$urlGenerator->linkToDocs('admin-dir_permissions')]) ); } } @@ -684,10 +683,9 @@ class OC_Util { ) { $errors[] = array( 'error' => $l->t('Cannot write into "apps" directory'), - '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" rel="noreferrer">', '</a>')) + 'hint' => $l->t('This can usually be fixed by giving the webserver write access to the apps directory' + . ' or disabling the appstore in the config file. See %s', + [$urlGenerator->linkToDocs('admin-dir_permissions')]) ); } } @@ -700,16 +698,14 @@ class OC_Util { } else { $errors[] = [ 'error' => $l->t('Cannot create "data" directory'), - 'hint' => $l->t('This can usually be fixed by ' - . '<a href="%s" target="_blank" rel="noreferrer">giving the webserver write access to the root directory</a>.', + 'hint' => $l->t('This can usually be fixed by giving the webserver write access to the root directory. See %s', [$urlGenerator->linkToDocs('admin-dir_permissions')]) ]; } } else if (!is_writable($CONFIG_DATADIRECTORY) or !is_readable($CONFIG_DATADIRECTORY)) { //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.', - ['<a href="' . $urlGenerator->linkToDocs('admin-dir_permissions') . '" target="_blank" rel="noreferrer">', '</a>']); + $permissionsHint = $l->t('Permissions can usually be fixed by giving the webserver write access to the root directory. See %.', + [$urlGenerator->linkToDocs('admin-dir_permissions')]); $errors[] = [ 'error' => 'Your data directory is not writable', 'hint' => $permissionsHint |