i would suggest to insert on top those lines to check if a parameter starts with "http://" and then starts the default html viewer:
Code: Select all
###########################################################
# just add this handler for "http://" type requests
# this will handle correct extensions like .pl or .php,
# .cgi and others
###########################################################
URLFILE=$1
if [ "`echo -n "$URLFILE" | head -c 7`" = "http://" ];then
/usr/local/bin/defaulthtmlviewer "$1"
exit
fi
###########################################################