aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-16 14:13:26 -0800
committerfriendica <info@friendica.com>2014-02-16 14:13:26 -0800
commitebd52368bb134e57a54d853732b5b4970a8ce02b (patch)
tree3b950917be780242a2e5ae64c9b26f42e170a637 /include/text.php
parentd9e4f634665ec4da69b5af230f45f2a0e9688a1b (diff)
downloadvolse-hubzilla-ebd52368bb134e57a54d853732b5b4970a8ce02b.tar.gz
volse-hubzilla-ebd52368bb134e57a54d853732b5b4970a8ce02b.tar.bz2
volse-hubzilla-ebd52368bb134e57a54d853732b5b4970a8ce02b.zip
strip hard-wired zids from posted links as they will have the wrong identity when somebody tries to view the link
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 2b334068f..2f5accf6e 100755
--- a/include/text.php
+++ b/include/text.php
@@ -621,6 +621,11 @@ function get_tags($s) {
}
+function strip_zids($s) {
+ return preg_replace('/[\?&]zid=(.*?)(&|$)/ism','$2',$s);
+}
+
+
// quick and dirty quoted_printable encoding