Merge pull request #225 from Segr/bugfix

Bugfix
Fix possible SQL injection vulnerability in manager
Fix possible XSS vulnerability in manager
Merge pull request #1 from modxcms/bugfix

Update