tazweb diff data/bookmarks.cgi @ rev 161

Allow IP v6 localhost address to bookmarks work; change "Bookmarks" icon; "cleanse pixmaps" action.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 03 00:47:25 2014 +0200 (2014-11-03)
parents 68248b2673dd
children
line diff
     1.1 --- a/data/bookmarks.cgi	Sun Apr 13 02:30:09 2014 +0200
     1.2 +++ b/data/bookmarks.cgi	Mon Nov 03 00:47:25 2014 +0200
     1.3 @@ -12,9 +12,10 @@
     1.4  bookmarks="$config/bookmarks.txt"
     1.5  
     1.6  # Security check
     1.7 -if [ "$REMOTE_ADDR" != "127.0.0.1" ]; then
     1.8 -	echo "Security exit" && exit 1
     1.9 -fi
    1.10 +case $REMOTE_ADDR in
    1.11 +	127.0.0.1|\[::ffff:127.0.0.1\]) ;;
    1.12 +	*) header; echo "Security exit! Your IP: $REMOTE_ADDR"; exit 1
    1.13 +esac
    1.14  
    1.15  # HTML 5 header with built-in minimal CSS
    1.16  html_header() {