aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
Diffstat (limited to 'graph.php')
-rw-r--r--graph.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/graph.php b/graph.php
index 37e442a..d170a6c 100644
--- a/graph.php
+++ b/graph.php
@@ -17,6 +17,11 @@ if (!file_exists($CONFIG['webdir'].'/plugin/'.$plugin.'.php')) {
17 error_image(); 17 error_image();
18} 18}
19 19
20if ($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
21include $CONFIG['webdir'].'/plugin/'.$plugin.'.php'; 26include $CONFIG['webdir'].'/plugin/'.$plugin.'.php';
22 27