diff options
Diffstat (limited to 'graph.php')
| -rw-r--r-- | graph.php | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -17,6 +17,11 @@ if (!file_exists($CONFIG['webdir'].'/plugin/'.$plugin.'.php')) { | |||
| 17 | error_image(); | 17 | error_image(); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | if ($width > $CONFIG['max-width'] || $height > $CONFIG['max-height']) { | ||
| 21 | error_log('Resquested image is too large. Please configure max-width and max-height.'); | ||
| 22 | error_image(); | ||
| 23 | } | ||
| 24 | |||
| 20 | # load plugin | 25 | # load plugin |
| 21 | include $CONFIG['webdir'].'/plugin/'.$plugin.'.php'; | 26 | include $CONFIG['webdir'].'/plugin/'.$plugin.'.php'; |
| 22 | 27 | ||
