refs #6070 also unsanitise the pattern which is needed for when pattern contains single quote '
avoid eval() in pChart
Merge branch 'master' of github.com:piwik/piwik