Re: [Vimprobable-users] Improve handling of file parameters
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Hannes S. <ha...@yl...> - 2013-03-01 21:02:50
|
Hi! Morgan Howe <mt...@gm...> wrote: > On Tue, Feb 26, 2013 at 2:49 AM, Hannes Schüller <ha...@yl...> > wrote: > > Morgan Howe <mt...@gm...> wrote: > > > 1) Check if it's a search engine > > > 2) If not a search engine, look for "://", if found, trust the > > > user. 3) Else, check if it's a file and if so, build the file:// > > > URI 4) Else, check (again) if it's a search engine > > > 5) Else, prefix with "http://" and attempt to open. > > > > > > Due to the order of the evaluation, the issue you mentioned > > > originally should not be a problem. > > > > Actually, this is exactly the main issue I tried explaining > > initially: the policy change to give precedence to local files over > > URLs. > > So is this acceptable to be merged then? The only conflict case > remaining is a local file, in the current directory, with the exact > same name as the domain you'd potentially like to visit. In such > case, 'vp2 http://www.example.com' rather than 'vp2 www.example.com' > is an easy and obvious workaround. For me, the question which is still open is whether this patch also fixes the issue of vimprobable2 ./index.htm which some people seem to experience in the current stable version. I cannot test it since I cannot reproduce the original issue. If it is fixed, is it because of the use of realpath or due to the stat call? Hannes |