summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/surf-display17
1 files changed, 0 insertions, 17 deletions
diff --git a/bin/surf-display b/bin/surf-display
index 47ddc6e..b016e9d 100755
--- a/bin/surf-display
+++ b/bin/surf-display
@@ -66,9 +66,6 @@ SCREENSAVER_SETTINGS=""
# don't use an HTTP proxy by default
HTTP_PROXY_URL=""
-# URI block list, if any
-unset URI_BLOCKLIST
-
# log to stderr, if not set to "yes" in one of the config files...
LOG_TO_SYSLOG=no
@@ -176,20 +173,6 @@ if ! echo "$WWW_URI" | grep -q -E "^(file://|http://|https://).*"; then
exit -1
fi
-# if URI_BLOCKLIST is not set, populate it and limit access to the WWW_SERVER that WWW_URI points to only.
-if [ ! -v URI_BLOCKLIST ]; then
- URI_TYPE=`echo "$WWW_URI" | sed -r -e 's@(file://|http(|s)://)[^/]+/.*@\1@'`
- WWW_SERVER=""
- if echo "$URI_TYPE" | grep -q -E "^http(|s)://([^/]+)/.*"; then
- WWW_SERVER=`echo "$WWW_URI" | sed -r -e 's@^http(|s)://([^/]+)/.*@\2@'`
- fi
- URI_BLOCKLIST='^((?!'$URI_TYPE'.*'$WWW_SERVER'/).).*$'
-fi
-
-if [ -n "$URI_BLOCKLIST" ]; then
- URI_BLOCKLIST="-b $URI_BLOCKLIST"
-fi
-
if [ -n "${RESOLUTION}" ]; then
if type -p xrandr 1>/dev/null; then
xrandr -d :0 --output "$(echo $currentOutput)" --mode $RESOLUTION