spfoonnewb Posted January 5, 2007 Share Posted January 5, 2007 Are there security risks with the following code? (Injection etc) If so what should I be filtering? Since the URL has to be the header location I figure there wouldn't?[code]<?phpob_start();$url = $_GET["url"];if (isset($url)) {header("Location: $url");}else {}?>[/code] Link to comment https://forums.phpfreaks.com/topic/32918-header-security-question/ Share on other sites More sharing options...
trq Posted January 5, 2007 Share Posted January 5, 2007 [quote]Are there security risks with the following code?[/quote]Not really. You should code it like this however to stop notices.[code=php:0]if (isset($_GET['url'])) {[/code] Link to comment https://forums.phpfreaks.com/topic/32918-header-security-question/#findComment-153355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.