Fixed that avatar cannot saved if subdomain used
Merge pull request #528 from linzongshu/user

Fixed bug that avatar cannot be saved if subdomain was used