diff --git a/www/header.php b/www/header.php index 0f2dd1d..720ceb4 100644 --- a/www/header.php +++ b/www/header.php @@ -24,6 +24,13 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) { // if the row is the first one (name url status score) only display (Name Status Score): // display the contents of a csv row if ( $c == "1" ){ +//add http if its not already done in the URL +if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) { + $urllink = "http://" . $data[3]; + }else{ + $urllink = $data[3]; + } + if ($oldcatname != $data[1]){ echo "