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 @@ ...@@ -14,10 +14,8 @@
vim: expandtab sw=4 ts=4 sts=4: vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/ **********************************************************************/
require 'secure.inc.php'; require 'secure.inc.php';
$url = trim($_GET['url']);
global $_GET; if (!$url || !Validator::is_url($url)) exit('Invalid url');
$url = $_GET['url'];
if (!$url) exit();
?> ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html> <html>
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
vim: expandtab sw=4 ts=4 sts=4: vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/ **********************************************************************/
require_once 'staff.inc.php'; require_once 'staff.inc.php';
$url = trim($_GET['url']);
global $_GET; if (!$url || !Validator::is_url($url)) exit('Invalid url');
$url = $_GET['url'];
if (!$url) exit();
?> ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html> <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