From: paul Date: Wed, 19 Nov 2014 15:11:59 +0000 (+0000) Subject: escape ' character in video url X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=13bc8cf1d7d60787b1abbbdc18dd153b4b631006;p=serve0 escape ' character in video url svn path=/trunk/; revision=24 --- diff --git a/pages/videoview.sh b/pages/videoview.sh index d05c519..fdc19c7 100755 --- a/pages/videoview.sh +++ b/pages/videoview.sh @@ -90,7 +90,7 @@ _printVideo(){ [ -r "$meta" ] || ". ${_EXEC}/helpers/genmeta.sh" "$video" "$meta" [ -r "$thumb" ] || ". ${_EXEC}/helpers/genthumb.sh" "$video" "$thumb" [ -L "$mpfake" ] || ln -s "../videos/$info" "$mpfake" - video="$(echo "videos/$info" |sed 's/\?/\%6F/g;s/&/\%26/g')" + video="$(echo "videos/$info" |sed 's/\?/\%6F/g;s/&/\%26/g;s/'\''/%27/g')" thumb="$(echo "thumbs/$info.jpg" |sed 's/\?/%6F/g')" mpfake="$(echo "$info" |sed -r 's:^(.*)\.[a-zA-Z0-9]{3,4}$:mp4/\1.mp4:' |sed 's/\?/%6F/g')"