Project

General

Profile

Actions

Bug #1805

closed

Captive portal - Portal page contents - View current page url is incorrect.

Added by Davy Moedbeck almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/19/2011
Due date:
08/19/2011
% Done:

0%

Estimated time:
0.10 h
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:
All

Description

In the http://pfsense.local/services_captiveportal.php file there is an incorrect part:

the lines 701 till 709 needs to be removed and line
<a href="" target="_new"></a>

needs to be replaced by:

<a href="?act=viewhtml" target="_blank"></a>

So it would be like:
701 -
702 - list($host) = explode(":", $_SERVER['HTTP_HOST']);
703 - if(isset($config['captiveportal']['httpslogin'])) {
704 - $href = "https://$host:8001";
705 - } else {
706 - $href = "http://$host:8000";
707 - }
708 - ?>

710 - <a href="" target="_new"></a>

710 + <a href="?act=viewhtml" target="_blank"></a>

I have verified this and its the same in todays snapchot "2.0-RC3 (i386) built on Thu Aug 18 18:44:11 EDT 2011" as on the development snapshot of today "2.1-DEVELOPMENT (i386) built on Thu Aug 18 18:44:11 EDT 2011".

included is a fixed file for the problem


Files

services_captiveportal.php (44.5 KB) services_captiveportal.php Fixed file: services_captiveportal.php Davy Moedbeck, 08/19/2011 08:09 AM
Actions #1

Updated by Davy Moedbeck almost 14 years ago

to be more specific: select line 700 - 710 and replace by:

        <?=$mandfldhtml;?><input type="file" name="htmlfile" class="formfld file" id="htmlfile"><br>
        <?php if ($config['captiveportal']['page']['htmltext']): ?>
        <a href="?act=viewhtml" target="_blank"><?=gettext("View current page"); ?></a>

PS: Excuse me for the mess in my first post. (its the first time i'm using this...).

Actions #2

Updated by Chris Buechler almost 14 years ago

  • Status changed from New to Closed

duplicate of #1810

Actions

Also available in: Atom PDF