summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-04-05 21:33:15 -0500
committerGitHub <noreply@github.com>2017-04-05 21:33:15 -0500
commit0693536a8c72d02e723107b746e11c9bf16b8a96 (patch)
treebcf715c115c872beee872f3bf4e52be45938713c
parentb0ab3b628a16a70e8bad350d3b5ee0aeab36cc11 (diff)
parent1f00bddc0449b3a7f87c5e62f62f777c8a1f7331 (diff)
downloadnextcloud-server-0693536a8c72d02e723107b746e11c9bf16b8a96.tar.gz
nextcloud-server-0693536a8c72d02e723107b746e11c9bf16b8a96.zip
Merge pull request #4227 from nextcloud/stable10-error-messages
[Stable10] error messages
-rw-r--r--apps/updatenotification/templates/admin.php2
-rw-r--r--core/templates/error.php2
-rw-r--r--lib/private/Files/Storage/Local.php5
3 files changed, 5 insertions, 4 deletions
diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php
index b14c72d83a5..7923c0aa011 100644
--- a/apps/updatenotification/templates/admin.php
+++ b/apps/updatenotification/templates/admin.php
@@ -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 } ?>
diff --git a/core/templates/error.php b/core/templates/error.php
index 6e044b72414..b5e8c8eab3f 100644
--- a/core/templates/error.php
+++ b/core/templates/error.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 ?>
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index 0d63fd46ecc..435d49841ee 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -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);
}
/**