Skip to content
Snippets Groups Projects
Commit f127fa29 authored by echicken's avatar echicken :chicken:
Browse files

Make the script not poop its pants if the requested file

directory or library does not exist. (Thx DM)
parent 1d781159
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
load(settings.web_lib + 'request.js');
load(settings.web_lib + 'files.js');
locale.section = 'page_files';
if (Request.has_param('dir')) {
if (Request.has_param('dir') && file_area.dir[Request.get_param('dir')]) {
?>
<ol class="breadcrumb">
<li>
......@@ -57,7 +57,7 @@
<?xjs listFiles(Request.get_param('dir')).forEach(writeFileDetails); ?>
</div>
<?xjs } else if (Request.has_param('library')) { ?>
<?xjs } else if (Request.has_param('library') && file_area.lib_list[Request.get_param('library')]) { ?>
<ol class="breadcrumb">
<li>
......
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