diff --git a/www/index.php b/www/index.php index b0afb0c355b449413f09cf04bf5c938520e3b4ba..3a27597a9e31175f16c82ef16b8abe320383e91d 100644 --- a/www/index.php +++ b/www/index.php @@ -28,6 +28,7 @@ if ($template == 'Mobile') { $page->addScript('searchFunc.js'); if (isset($_GET['u']) //u is referring site + && $_GET['u'] !== 'http://www.unl.edu/' && preg_match('/^https?/', $_GET['u']) && filter_var($_GET['u'], FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED) && $scanned = @file_get_contents($_GET['u'])) { @@ -83,7 +84,7 @@ if (isset($_GET['u']) //u is referring site $page->maincontentarea = ' <div id="searchform"> - <form action="http://www1.unl.edu/search/" method="get"> + <form action="./" method="get"> <label for="q">Search</label> <input type="text" name="q" id="q" />'; if (!empty($local_results)) {