This is small change, but is necessary for https://github.com/piwik/piwik/issues/9975, https://github.com/piwik/piwik/issues/4920 and others. On my tests, even with single quote, numeric idSite works fine for simple pageview track.
Looks good to me. There shouldn't be any security risks from what I can see as we always check the site exists etc. Any thoughts @mattab or @sgiehl ?
No concerns from my side
Thanks for the pull request @joubertredrat and looking forward to see the plugin on the Marketplace 👍