Donate Share

RDBEdit

Tracker: Bugs

5 Relocation to https server due to false check of HTTPS value - ID: 1254962
Last Update: Comment added ( papercrane )

In the Formbuilder/Frontend/Controller.php file there
exists a function which should do a refresh after different
actions have taken place.

The check to see if the server the script is running on
supports (and uses) HTTPS is faulty.

In my case the _SERVER["HTTPS"] variables does
exist but has the value "off". Therefore the check results
in true and a relocation is attemptet to:
https://www.blaat.com/ which results in failure. I do not
use a HTTPS.

The function is called "refresh".

function refresh($url = false)

The faulty line is:

$url = 'http'.(isset($_SERVER
['HTTPS']) ? 's' : '').'://'.$_SERVER['HTTP_HOST'].

and should be: (at least in my case):

$url = 'http'.(($_SERVER['HTTPS']!
="off") ? 's' : '').'://'.$_SERVER['HTTP_HOST'].

Surely one could make the check a little bit better (use
nasecmp instead to prevent failure on case sensitive
strings)


Wouter van den Eerenbeemt ( mprofile ) - 2005-08-09 13:37

5

Closed

None

Nobody/Anonymous

Interface (example)

v1.0 (example)

Public


Comment ( 1 )




Date: 2005-08-09 20:23
Sender: papercraneProject Admin

Logged In: YES
user_id=858618

Wow, I think this is the first user submitted bug I've
gotten for this project. Thanks, I've fixed this in my CVS.
It should be in the next release.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2005-08-09 20:23 papercrane
close_date - 2005-08-09 20:23 papercrane