Merge pull request #3000 from Wikia/MAIN-1879
Backported from dev to fix MAIN-1879 P1
MAIN-1879: Local sanitization of variables