From: Lukas Reschke Date: Mon, 14 Apr 2014 18:16:52 +0000 (+0200) Subject: Use direct link instead of JS X-Git-Tag: v7.0.0alpha2~396^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2bda3f9ae0893e94bd07a9c8916adcf06aa4a597;p=nextcloud-server.git Use direct link instead of JS Due to our CSP policy this link won’t work as it it considered as inline Javascript. This commit replaces the link with a static link to the files app. Reimplementation of #8067 - fixes #7742 --- diff --git a/lib/private/files.php b/lib/private/files.php index bfe6d3c02da..e6135c4329f 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -231,7 +231,7 @@ class OC_Files { OC_Template::printErrorPage( $l->t('ZIP download is turned off.'), $l->t('Files need to be downloaded one by one.') - . '
' . $l->t('Back to Files') . '' + . '
' . $l->t('Back to Files') . '' ); exit; } @@ -258,8 +258,7 @@ class OC_Files { OC_Template::printErrorPage( $l->t('Selected files too large to generate zip file.'), $l->t('Please download the files separately in smaller chunks or kindly ask your administrator.') - .'
' - . $l->t('Back to Files') . '' + . '
' . $l->t('Back to Files') . '' ); exit; }