Fixed a potential XSS vulnerability.

Thanks JPCERT for reporting it to us.
Merge pull request #217 from xhezairi/develop

Fixed a potential XSS vulnerability.