Skip to content

Conversation

@mlr
Copy link

@mlr mlr commented Apr 3, 2012

This pull request addresses the following bug:

http://sourceforge.net/tracker/?func=detail&aid=3510196&group_id=23067&atid=377408

The two commenters disagree that it is a PHPMyAdmin issue, however I do not agree. The OP's bug report is valid if you consider the fact that users can configure their server to run on a non-standard SSL port. If you have set the PmaAbsoluteUri and reference the non-standard port number in that address, then phpMyAdmin will not use that port when ForceSSL is set to true. This is addressed by keeping the port number in the URL when redirecting to SSL if it exists in PmaAbsoluteUri.

There is also a new config setting available called SSLPort. If that is set, phpMyAdmin will redirect to that port number, otherwise the standard SSL port of 443 will be used.

@nijel
Copy link
Contributor

nijel commented Apr 3, 2012

The preg_replace you wrote will badly fail in case IPv6 address is used. Also please try to honor coding style.

@ghost ghost assigned nijel Apr 3, 2012
@mlr
Copy link
Author

mlr commented Apr 3, 2012

Ah. You're right of course, hadn't thought about that. Thanks for your feedback though, I'll work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants