svn path=/trunk/; revision=47
n=$(($n + 1))
done
-[ -z "$cancel" ] && if [ -n "$trash" ]; then
+[ -z "$cancel" -a -n "$info" ] && if [ -n "$trash" ]; then
rm "${_DATA}/thumbs/$info.jpg" 2>/dev/null
mv "${_DATA}/videos/$info" "${_DATA}/meta/$info.meta" "${_DATA}/trash/" 2>/dev/null
rm "${_DATA}/cache/$info.cache" 2>/dev/null
[ -z "$page" ] && page=0
page_link=''
-[ -n "$info" ] && page_link="i=$(echo -En "$info" |sed -r 's:%:%25:g;s:\&:%26:g;')&"
+[ -n "$info" ] && page_link="i=$(urlsave "$info")&"
[ -n "$order" ] && page_link="${page_link}o=${order}&"
[ -n "$search" ] && page_link="${page_link}s=${search}&"
[ -n "$filter" ] && page_link="${page_link}f=${filter}&"
# You should have received a copy of the GNU Affero General Public License
# along with Serve0. If not, see <http://www.gnu.org/licenses/>.
-. $_EXEC/pages/common.sh
-
info="$_GET[\"i\"]"
+. $_EXEC/pages/common.sh
meta="${_DATA}/meta/$info.meta"
video="${_DATA}/videos/$info"