Fix an issue that causes retrieving incorrect URL.

PHP-Intro Assignment 6
Merge pull request #15 from ronxin/master

Fix an issue that causes retrieving incorrect URL.