diff options
author | wm4 <wm4@nowhere> | 2013-09-04 16:28:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-04 16:28:02 +0200 |
commit | 191ac00af277f0d798716e2e8d0419656c011b52 (patch) | |
tree | 452499a00b3a7d59e102df4c407323e76de04d0c /mpvcore/m_option.c | |
parent | 3bb217d5e9fda241693c7f3c6a4046c845d8d5a8 (diff) | |
download | mpv-191ac00af277f0d798716e2e8d0419656c011b52.tar.bz2 mpv-191ac00af277f0d798716e2e8d0419656c011b52.tar.xz |
path: better check for mp_is_url()
The previous check just searched for a "://" substring. This was quite
bad, because "://" can be a valid part of a path. Later, I added
special handling for filenames starting with "." and "/", so that you
could reliably pass arbitrary filenames to mpv, no matter how messed
up they were.
Even though it doesn't really matter in practise anymore, this is still
crap, so add a more reliable check instead.
Diffstat (limited to 'mpvcore/m_option.c')
0 files changed, 0 insertions, 0 deletions