aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-03 21:05:48 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-03 21:05:48 -0800
commit4cab74c18cf237eae6c57baea2b1d4fd260fe590 (patch)
tree21fa8406e9956e8fb6260fe92a0a2c4f7fa656d6 /include/plugin.php
parent615c97132d37027833744a6a00da4ebc08840309 (diff)
downloadvolse-hubzilla-4cab74c18cf237eae6c57baea2b1d4fd260fe590.tar.gz
volse-hubzilla-4cab74c18cf237eae6c57baea2b1d4fd260fe590.tar.bz2
volse-hubzilla-4cab74c18cf237eae6c57baea2b1d4fd260fe590.zip
use the channel blacklist for items and mail, still todo: directory and stuff
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 1d4caac0f..1f4d60736 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -495,6 +495,15 @@ function format_css_if_exists($source) {
return '<link rel="stylesheet" href="' . script_path() . '/' . $path . '" type="text/css" media="' . $source[1] . '">' . "\r\n";
}
+/*
+ * This basically calculates the baseurl. We have other functions to do that, but
+ * there was an issue with script paths and mixed-content whose details are arcane
+ * and perhaps lost in the message archives. The short answer is that we're ignoring
+ * the URL which we are "supposed" to use, and generating script paths relative to
+ * the URL which we are currently using; in order to ensure they are found and aren't
+ * blocked due to mixed content issues.
+ */
+
function script_path() {
if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS'])
$scheme = 'https';