<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Erroneous https detected for "redirect_url"]]></title>
		<link>https://punbb.informer.com/forums/topic/25910/erroneous-https-detected-for-redirecturl/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/25910/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Erroneous https detected for "redirect_url".]]></description>
		<lastBuildDate>Fri, 05 Dec 2014 06:21:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Erroneous https detected for "redirect_url"]]></title>
			<link>https://punbb.informer.com/forums/post/154261/#p154261</link>
			<description><![CDATA[<p>You are a LIFE saver, same thing happened to me and spent an hour trying to figure it out. Thought it was on my end somehow.</p>]]></description>
			<author><![CDATA[null@example.com (KnownSyntax)]]></author>
			<pubDate>Fri, 05 Dec 2014 06:21:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/154261/#p154261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Erroneous https detected for "redirect_url"]]></title>
			<link>https://punbb.informer.com/forums/post/154184/#p154184</link>
			<description><![CDATA[<p>sleddog2, thank you for figuring out this problem! Your solution worked for me.</p><p>For others who may experience this same problem, it occurred for me with a server that has SNI enabled and that&#039;s hosting several sites, some which use valid SSL certs but not the one with punBB which threw this error.</p><p>Adding the &quot;empty($_SERVER[&#039;HTTPS&#039;])&quot; statement should definitely be included in the next upgrade to punBB. Fingers crossed it comes soon.</p>]]></description>
			<author><![CDATA[null@example.com (aaronproctor)]]></author>
			<pubDate>Sun, 19 Oct 2014 06:03:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/154184/#p154184</guid>
		</item>
		<item>
			<title><![CDATA[Erroneous https detected for "redirect_url"]]></title>
			<link>https://punbb.informer.com/forums/post/148410/#p148410</link>
			<description><![CDATA[<p>I installed the latest PunBB for testing. When I login I get redirected to an invalid HTTPS url. My test setup uses HTTP.</p><p>Environment:</p><p>Debian 6<br />PHP 5.4, Nginx 1.2 from DotDeb repo.<br />SQLite 3</p><p>After some digging I trace it to the <strong>get_current_url</strong> function in include/functions.php, specifically this line:</p><div class="codebox"><pre><code>$protocol = (!isset($_SERVER[&#039;HTTPS&#039;]) || strtolower($_SERVER[&#039;HTTPS&#039;]) == &#039;off&#039;) ? ...</code></pre></div><p>It seems that on my system $_SERVER[&#039;HTTPS&#039;] is set, but to an empty string.</p><p>I changed that line to:</p><div class="codebox"><pre><code>$protocol = (!isset($_SERVER[&#039;HTTPS&#039;]) || empty($_SERVER[&#039;HTTPS&#039;]) || strtolower($_SERVER[&#039;HTTPS&#039;]) == &#039;off&#039;) ? ...</code></pre></div><p>And all is well. I login and get redirected correctly.</p>]]></description>
			<author><![CDATA[null@example.com (sleddog2)]]></author>
			<pubDate>Sun, 17 Mar 2013 16:38:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/148410/#p148410</guid>
		</item>
	</channel>
</rss>
