aboutsummaryrefslogtreecommitdiffhomepage
path: root/common
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-01-21 12:10:45 +0100
committerGravatar wm4 <wm4@nowhere>2015-01-21 12:10:49 +0100
commitd558accaa69af1a0dcce0997f6343b4bc1e3f91d (patch)
tree6fca7b57a61460b74bf8a0e18793d38c96822e52 /common
parent724f722d7f284076e717d59c8565b7ed27dadae3 (diff)
stream_lavf: escape disallowed characters in http URLs
In my opinion, libavformat should be doing this. But a patch handling a very safe case rejected, so I suppose we have to do it manually. (This patch was only escaping spaces, which can never work because they break the basic syntax of the HTTP protocol.) This commit attempts to do 2 things: - Try to guess whether libavformat will use the URL for http. This is not always trivial, because some protocols will recursively pass part of the user URL to http in some way. - Try to fix invalid URLs. We fix only the simplest case: only characters that are never valid are escaped. This excludes invalid escape codes, which happen with freestanding '%' characters. Fixes #1495.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions