elif [ -n "$foreign" ]; then
_COOKIE[watch]=server
videourl="${_GET[url]}"
- watch_link="${_GET[return]}"
+ watch_link="w=$(urlsafe "${_GET[return]}")"
elif [ -z "$info" ]; then
videourl="$(urlsafe "${location#/}")"
else
case "$_COOKIE[watch]" in
raspi)
rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch"
- redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/?${_POST[page]}")"
+ redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/${_POST[page]}")"
;;
480p)
[ $height -gt 480 ] && redirect "?action=transcode&i=${linkinfo}&t=480" \
-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
#
# This file is part of Serve0
#
</select>
<!-- input type="submit" name="submit" value="Find" -->
- <a class="panel" href="${info:+?p=list&${page_this}}${directory:+?p=browse&d=${directory}&${page_this}}#$(urlsafe $info)">Dismiss</a>
+ <a class="panel" href="${_GET[w]:-${info:+?p=list&${page_this}}${directory:+?p=browse&d=${directory}&${page_this}}#$(urlsafe $info)}">Dismiss</a>
</form>
<input type=radio name=topmenu id=btn_playctl><label for=btn_playctl>Audio</label>