encoding: re-encode everything, allow colon

fixes #16
fixes #17
This commit is contained in:
Thomas Gelf 2017-02-02 11:11:24 +01:00
parent dfed0eec69
commit b66c785616
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ class ShowController extends Controller
);
foreach ($this->params->toArray() as $val) {
$query->where($val[0], $val[1]);
$query->where($val[0], urldecode($val[1]));
}
$img = $this->applyGraphParams(current($query->getImages($template)))

View file

@ -106,6 +106,6 @@ class GraphiteUtil
public static function escape($string)
{
return preg_replace('/[^a-zA-Z0-9\*\-]/', '_', $string);
return preg_replace('/[^a-zA-Z0-9\*\-:]/', '_', $string);
}
}