Merge pull request #4227 from nextcloud/stable10-error-messages
[Stable10] error messages
This commit is contained in:
commit
0693536a8c
|
@ -30,7 +30,7 @@
|
|||
<a href="<?php p($_['downloadLink']); ?>" class="button<?php if ($_['updaterEnabled']) { p(' hidden'); } ?>"><?php p($l->t('Download now')) ?></a>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<strong><?php print_unescaped($l->t('Your version is up to date.')); ?></strong>
|
||||
<strong><?php p($l->t('Your version is up to date.')); ?></strong>
|
||||
<span class="icon-info svg" title="<?php p($l->t('Checked on %s', [$lastCheckedDate])) ?>"></span>
|
||||
<?php } ?>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<li class='error'>
|
||||
<?php p($error['error']) ?><br>
|
||||
<?php if(isset($error['hint']) && $error['hint']): ?>
|
||||
<p class='hint'><?php print_unescaped($error['hint']) ?></p>
|
||||
<p class='hint'><?php p($error['hint']) ?></p>
|
||||
<?php endif;?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
|
|
|
@ -372,9 +372,10 @@ class Local extends \OC\Files\Storage\Common {
|
|||
}
|
||||
if (substr($realPath, 0, $this->dataDirLength) === $this->realDataDir) {
|
||||
return $fullPath;
|
||||
} else {
|
||||
throw new ForbiddenException("Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", false);
|
||||
}
|
||||
|
||||
\OCP\Util::writeLog('core', "Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", \OCP\Util::ERROR);
|
||||
throw new ForbiddenException('Following symlinks is not allowed', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue