Skip to content
Snippets Groups Projects
Commit a204a46d authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #3212 from owncloud/stop-links

Don't display shared links if disabled
parents f47cecc6 274bf3c6
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,13 @@ $RUNTIME_NOSETUPFS = true;
// Load other apps for file previews
OC_App::loadApps();
if (\OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes') !== 'yes') {
header('HTTP/1.0 404 Not Found');
$tmpl = new OCP\Template('', '404', 'guest');
$tmpl->printPage();
exit();
}
function fileCmp($a, $b) {
if ($a['type'] == 'dir' and $b['type'] != 'dir') {
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment