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}&"
[ -z "$page" ] && page=0
page_link=''
-[ -n "$info" ] && page_link="${page_link}i=${info}&"
+[ -n "$info" ] && page_link="i=$(echo -n "$info" |sed -r 's:%:%25:g;s:\&:%26:g;')&"
[ -n "$order" ] && page_link="${page_link}o=${order}&"
[ -n "$search" ] && page_link="${page_link}s=${search}&"
[ -n "$filter" ] && page_link="${page_link}f=${filter}&"
minutes="$(($length / 60)):0$(($length % 60))" ||\
minutes="$(($length / 60)):$(($length % 60))"
+ linkinfo="$(echo -n "$info" |sed -r 's:%:%25:g;s:\&:%26:g;')"
tee "$cache" <<VIDEOend
<div class="thumb">
- <a class="watchlink" name="$info" href="?action=watch&i=$info">
+ <a class="watchlink" name="$linkinfo" href="?action=watch&i=$linkinfo">
<img src="$thumb">
</a>
<a class="videolink" href="$video">$info</a>