Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting this.
Before defaulting to the Fallback URL, I'll make Fauxbar perform an Ajax GET
command to see if the Address Box's input is a valid URL.
So, if you type in "abc/def", Fauxbar will still assume it's not a valid URL at
first glance. But I'll have Fauxbar then attempt to retrieve "http://abc/def",
and if that comes back as OK, Fauxbar will send you to "http://abc/def" as
desired.
For testing, I'll make 'abc' resolve to 127.0.0.1 in my local hosts file. I
think this should work.
And you're welcome :D
Original comment by fauxbar....@gmail.com
on 1 Nov 2011 at 8:43
This has been fixed in v1.2.0 (just released).
Made this check for custom domain names (that don't contain periods) in 2 steps:
1. Before using the Fallback URL, Fauxbar queries its database to see if any
page uses the supposed domain name. If a result is returned, it's deemed as
valid, and Fauxbar will take you to your desired page by putting "http://" in
front of your input.
2. If no database results return, Fauxbar performs an Ajax GET request for the
domain's homepage. eg, if you type in "abc/def", Fauxbar attempts to retrieve
"http://abc/". If this top-level page returns successfully, even if it's a 404
or 403 error or whatever, it means the domain at least exists, and your input
is deemed valid.
Failing these two checks, the Fallback URL will be used.
Original comment by fauxbar....@gmail.com
on 12 Nov 2011 at 3:58
Original issue reported on code.google.com by
papillon...@gmail.com
on 1 Nov 2011 at 7:52