Skip to content

Commit

Permalink
3171 fix estrict error when the filename has no value
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Mar 2, 2018
1 parent 7c1b9d2 commit 4c7f9c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion get_course_icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// How did this ever work when the stock icons are used instead of a custom one, see mantis 5465
//if (file_exists($real) && (substr($real, 0, strlen(AT_CONTENT_DIR)) == AT_CONTENT_DIR)) {
if (file_exists($real)) {
header('Content-Disposition: inline; filename="'.$size.$id.'.'.$pathinfo['extension'].'"');
header('Content-Disposition: inline; filename="'.$filename.'"');

/**
* although we can check if mod_xsendfile is installed in apache2
Expand Down
2 changes: 1 addition & 1 deletion get_custom_logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

if (file_exists($real) && (substr($real, 0, strlen(AT_CONTENT_DIR)) == AT_CONTENT_DIR)) {

header('Content-Disposition: inline; filename="'.$size.'.'.$ext.'"');
header('Content-Disposition: inline; filename="custom_logo.'.$ext.'"');

/**
* although we can check if mod_xsendfile is installed in apache2
Expand Down

0 comments on commit 4c7f9c2

Please sign in to comment.