Skip to content
Snippets Groups Projects
Commit 8066f366 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #342 from protich/feature/url-redirect

URL Redirect
parents ecd70d48 6fa433c7
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,8 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require 'secure.inc.php';
global $_GET;
$url = $_GET['url'];
if (!$url) exit();
$url = trim($_GET['url']);
if (!$url || !Validator::is_url($url)) exit('Invalid url');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
......
......@@ -14,10 +14,8 @@
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require_once 'staff.inc.php';
global $_GET;
$url = $_GET['url'];
if (!$url) exit();
$url = trim($_GET['url']);
if (!$url || !Validator::is_url($url)) exit('Invalid url');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment