Project

General

Profile

« Previous | Next » 

Revision e3c4516b

Added by Ermal LUÇI over 12 years ago

Use rtrim to avoid issues

View differences:

usr/local/captiveportal/index.php
49 49

  
50 50
$orig_host = $_ENV['HTTP_HOST'];
51 51
/* NOTE: IE 8/9 is buggy and that is why this is needed */
52
$orig_request = trim($_REQUEST['redirurl'], " ");
53
$orig_request = ($orig_request == '/') ? '' : $orig_request;
52
$orig_request = rtrim($_REQUEST['redirurl'], " /");
53
$orig_request = empty($orig_request) ? '' : $orig_request;
54 54
$clientip = $_SERVER['REMOTE_ADDR'];
55 55

  
56 56
if (!$clientip) {

Also available in: Unified diff