]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
enable video filenames containing ampersand
[serve0] / actions / watch.sh
index cd1dd14105ae7bf4a845ca0835d3bc19b28efccd..65bfecd981215062de7e444894b46a2e232d990e 100755 (executable)
@@ -8,7 +8,7 @@ filter="$_REF[\"f\"]"
 page="$_REF[\"p\"]"
 
 watch_link=''
-[ -n "$info" ]   && watch_link="${watch_link}i=${info}&"
+[ -n "$info" ]   && watch_link="i=$(echo -n "${info}" |sed -r 's:%:%25:g;s:\&:%26:g;')&"
 [ -n "$order" ]  && watch_link="${watch_link}o=${order}&"
 [ -n "$search" ] && watch_link="${watch_link}s=${search}&"
 [ -n "$filter" ] && watch_link="${watch_link}f=${filter}&"