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
This commit is contained in:
Lukas Reschke 2014-04-14 20:16:52 +02:00
parent 463df08088
commit 2bda3f9ae0
1 changed files with 2 additions and 3 deletions

View File

@ -231,7 +231,7 @@ class OC_Files {
OC_Template::printErrorPage( OC_Template::printErrorPage(
$l->t('ZIP download is turned off.'), $l->t('ZIP download is turned off.'),
$l->t('Files need to be downloaded one by one.') $l->t('Files need to be downloaded one by one.')
. '<br/><a href="javascript:history.back()">' . $l->t('Back to Files') . '</a>' . '<br/><a href="'.OCP\Util::linkTo('files', '').'">' . $l->t('Back to Files') . '</a>'
); );
exit; exit;
} }
@ -258,8 +258,7 @@ class OC_Files {
OC_Template::printErrorPage( OC_Template::printErrorPage(
$l->t('Selected files too large to generate zip file.'), $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('Please download the files separately in smaller chunks or kindly ask your administrator.')
.'<br/><a href="javascript:history.back()">' . '<br/><a href="'.OCP\Util::linkTo('files', '').'">' . $l->t('Back to Files') . '</a>'
. $l->t('Back to Files') . '</a>'
); );
exit; exit;
} }