| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
And make sure all input from $_GET variables are parsed and validated.
|
|
|
|
| |
as $_GET value
|
|
|
|
|
|
|
| |
This reverts commit 82d88098f4203cf7402d4faf5ad100cada70efaf.
Breaks async rendering, see
https://github.com/pommi/CGP/issues/106#issuecomment-66896905
|
|
|
|
| |
Closes #106
|
| |
|
|
|
|
|
|
|
|
|
| |
Report 400 Bad Request on query errors instead of reporting 200 OK
(which can be cached).
Add some additional validation for the 'x' and 'y' parameters, to catch
underflow (test with `x=-10` for example). Also fix a typo in the error
message and include more details (the actual error).
|
|
|
|
|
|
|
|
|
| |
`[\w\W]` matches EVERYTHING. Validation failed. Also remove `\d` as that
`\w` is a superset of it.
Also check that the host parameter is actually non-empty, otherwise
`collectd_plugins` will happily return results as the directory
`$CONFIG['datadir'] . '/' . ''` trivially exists...
|
|
|
|
|
|
|
| |
When there was a symlink in the path of $base, strpos($realpath, $base)
would have always return false.
Closes: https://github.com/pommi/CGP/pull/49
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since commit collectd-4.10.0-88-g02e12db the varnish plugin groups collected
values in categories. The collectd filestructure used for varnish is now:
<plugin>-<category>-<plugin_instance>/<type>-<type_instance>
Because this isn't distinguishable from a regular plugin like df, ...
df-var-tmp/df_complex-free.rrd ("var" isn't the category here)
... the category is only set with the varnish plugin.
Reported-by: Jonathan Huot <jonathan.huot@gmail.com>
|
|
|
|
| |
Including a lot of undefined $_GET values.
|
|
|
|
|
|
| |
Image error messages were shown using PHP GD. People who haven't installed
PHP GD don't understand what is going on when an image is not shown. It is
replaced by a static image referring to the error log for more information.
|
| |
|
|
|