Skip to content

Commit

Permalink
typo...
Browse files Browse the repository at this point in the history
  • Loading branch information
CerealGuy committed Jul 15, 2015
1 parent 058f163 commit 529c041
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/app/Subs-Template.php
Expand Up @@ -144,6 +144,7 @@ function ob_sessrewrite($buffer)
{
global $settings, $context, $session_var, $board_info, $is_output_buffer;
global $txt, $time_start, $db_count, $cached_urls, $use_cache, $members_groups;
global $_SERVER;

// Just quit if SCRIPT is set to nothing, or the SID is not defined. (SSI?)
if (SCRIPT == '' || !defined('SID'))
Expand All @@ -160,7 +161,7 @@ function ob_sessrewrite($buffer)
$buffer = str_replace('<URL>', SCRIPT, $buffer);

// Same for <PROT>...
$buffer = str_replace('<PROT>', (empty($_SERVER['https']) ? 'http://' : 'https://'), $buffer);
$buffer = str_replace('<PROT>', (empty($_SERVER['HTTPS']) ? 'http://' : 'https://'), $buffer);

// And a quick fix for FTP clients uploading CRLF versions.
if (strpos($buffer, "\r\n") !== false)
Expand Down

0 comments on commit 529c041

Please sign in to comment.