On Fri, Jan 8, 2010 at 7:08 PM, Antoine Labour wrote:
> How about:
> int fd = open(file_or_url, O_RDONLY);
> if (fd >= 0) {
> close(fd);
> OpenLocalFile(file_or_url);
> } else {
> OpenURL(file_or_url);
> }
s/open/access/, but otherwise this is fine. It would be nice to add
--local-file and
On Sat, Jan 9, 2010 at 3:06 PM, Victor Khimenko wrote:
> P.S. There are interesting fact related to specifically colon and MacOS.
> Classic MacOS uses colon as delimeter and you can use slash in filename.
> when they used POSIX-compliat kernel they needed some way to resolve thus
> collision. The
CygWin is not POSIX system. It tries to emulate POSIX as much as feasible
but version 1.5, for example, does not even use POSIX filesystem namespace!
Anyway I've checked: latest stable version (1.7.1-1) works just fine here.
You can create directory "http:" - but it'll look really funny in Explore
Actually it was Cygwin on Windows Vista (GNU bash, version
3.2.49(22)-release (i686-pc-cygwin)
Copyright (C) 2007 Free Software Foundation, Inc.). However this isn't very
important with regards to the point you're trying to make. I was just
curious.
2010/1/9 Victor Khimenko
> What OS is it? What
What OS is it? What FS ? I've checked with GHardy - everything works just
fine. You can create filenames with ":", ">", "<", etc. Anything except "/"
but then it's compensated by the fact that duplicated slashes are ignored.
Cygwin works too (starting from version 1.7 where support for POSIX FS
na
Bash won't let me do this:
$ mkdir https:
mkdir: cannot create directory `https:': No such file or directory
$ mkdir "https:"
mkdir: cannot create directory `https:': No such file or director
2010/1/9 Victor Khimenko
>
> On Sat, Jan 9, 2010 at 2:55 PM, Antoine Labour wrote:
>
>> I'm not sure
On Sat, Jan 9, 2010 at 2:55 PM, Antoine Labour wrote:
> I'm not sure I understand the security risk... If an attacker is able to
> write files on my disk I have a lot more things to worry about than my
> browser spoofing urls.
>
> Are you sure? The idea is the same as with $PATH attack. Sure, som
On Sat, Jan 9, 2010 at 2:44 AM, Victor Khimenko wrote:
>
> On Sat, Jan 9, 2010 at 6:08 AM, Antoine Labour wrote:
>
>>
>> How about:
>>
>> int fd = open(file_or_url, O_RDONLY);
>> if (fd >= 0) {
>> close(fd);
>> OpenLocalFile(file_or_url);
>> } else {
>> OpenURL(file_or_url);
>> }
>>
>> Sec
On Sat, Jan 9, 2010 at 6:08 AM, Antoine Labour wrote:
>
> How about:
>
> int fd = open(file_or_url, O_RDONLY);
> if (fd >= 0) {
> close(fd);
> OpenLocalFile(file_or_url);
> } else {
> OpenURL(file_or_url);
> }
>
> Security risk. It's fine for interactive work (eve then it's risky), but
when
On Fri, Jan 8, 2010 at 5:15 AM, Paweł Hajdan, Jr.
wrote:
> We have http://crbug.com/4436, and the problem is that if you launch
> chrome index.html (with index.html in the current directory) it will
> try to navigate to http://index.html/ instead. This behavior is useful
> for cases like chrome ww
We have http://crbug.com/4436, and the problem is that if you launch
chrome index.html (with index.html in the current directory) it will
try to navigate to http://index.html/ instead. This behavior is useful
for cases like chrome www.google.com, and generally I don't see a good
solution to this is
11 matches
Mail list logo