fix a undefined index bug that occur when HTTP_REFERER is not given
Merge pull request #3 from ssut/dev

fix a undefined index bug that occur when HTTP_REFERER is not given