Sanitize progresscb.
Merge pull request #26 from zde/master

Sanitize progresscb.