Skip to content

Commit

Permalink
+ The <css include> tag in skin.xml files now allows for shortened pr…
Browse files Browse the repository at this point in the history
…otocols (// instead of http://), to make it easier for secure websites. (Subs-Cache.php)
  • Loading branch information
Nao committed Jun 8, 2014
1 parent a01ec2a commit b2b5bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/Subs-Cache.php
Expand Up @@ -1610,10 +1610,10 @@ function wedge_get_skin_options($options_only = false)
if (!empty($match['include']))
{
$includes = array_map('trim', explode(' ', $match['include']));
$has_external = strpos($match['include'], '://') !== false;
$has_external = strpos($match['include'], '://') !== false || strpos($match['include'], '//') === 0;
foreach ($includes as $val)
{
if ($has_external && strpos($val, '://') !== false)
if ($has_external && (strpos($val, '://') !== false || strpos($val, '//') === 0))
$context['header'] .= '
<link rel="stylesheet" href="' . $val . '">';
else
Expand Down

0 comments on commit b2b5bbe

Please sign in to comment.