Update SecurityUtil.php

Ensure that uid is always an integer: 


Q	A
Bug fix?	no
New feature?	yes
BC breaks?	no
Deprecations?	no
Tests pass?	yes
Fixed tickets	
License	MIT
Doc PR	no
Merge pull request #856 from rgasch/patch-12

Update SecurityUtil.php