Commit 829ffd16 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5188 Unclear error when geticon.php gets wrong information

Showing with 4 additions and 0 deletions
+4 -0
......@@ -36,6 +36,10 @@ if (session::global_is_set('config')) {
}
IconTheme::$default_theme = 'breezy';
IconTheme::$extensions = array('png');
if (!isset($_GET['context']) || !isset($_GET['icon']) || !isset($_GET['size'])) {
trigger_error('Missing information in query string: '.$_SERVER['QUERY_STRING']);
exit;
}
$src = IconTheme::findThemeIcon($theme, $_GET['context'], $_GET['icon'], $_GET['size']);
header("Content-Type: image/png");
......
  • bmortier @bmortier

    mentioned in issue #1651

    By Côme Chilliet on 2017-09-02T15:33:48 (imported from GitLab)

    ·

    mentioned in issue #1651

    By Côme Chilliet on 2017-09-02T15:33:48 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment