aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-31 18:35:35 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-31 18:35:35 -0700
commit5cc5e0fafdbc1795781b52124a63695ce3e2d49f (patch)
treedad73f6e6603863f1371d75671a60f75325fbd4e /include/bbcode.php
parent0df0fb4b4660b1811c22a7acba35bd62e07747ea (diff)
downloadvolse-hubzilla-5cc5e0fafdbc1795781b52124a63695ce3e2d49f.tar.gz
volse-hubzilla-5cc5e0fafdbc1795781b52124a63695ce3e2d49f.tar.bz2
volse-hubzilla-5cc5e0fafdbc1795781b52124a63695ce3e2d49f.zip
some basic background work for activitystreams-json-ld-2.0 conversions
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index f4d9bb525..e2403b8eb 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -958,6 +958,14 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) {
return $Text;
}
+/**
+ * This function exists as a short-term solution to folks linking to private images from their /cloud in
+ * their profiles, which brings up a login dialogue in the directory when that entry is viewed.
+ * The long term solution is to separate the web file browser from DAV so that you'll never see a
+ * login prompt (though the resource may return a permission denied).
+ */
+
+
function strip_bbimage($s) {
$Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text);