Index: lib/filelib.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lib/filelib.php (revision 43caa6209d6274f220beaa81540ebee47610b5fa) +++ lib/filelib.php (revision ) @@ -1908,13 +1908,16 @@ $fs = get_file_storage(); if ($fs->xsendfile($file->get_contenthash())) { return; - } - + } else { + send_file_not_found(); + } } else { require_once("$CFG->libdir/xsendfilelib.php"); if (xsendfile($file)) { return; - } + } else { + send_file_not_found(); + } } }