On Sat, Jan 9, 2010 at 6:08 AM, Antoine Labour <pi...@google.com> 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 script opens the file and you can shove local file where remote is expected or vice versa... Think about it: $ mkdir https: $ echo test > https://mail.google.com $ cat https://mail.google.com test Oops?
-- Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev