strip hard-wired zids from posted links as they will have the wrong identity when somebody tries to view the link

This commit is contained in:
friendica
2014-02-16 14:13:26 -08:00
parent d9e4f63466
commit ebd52368bb
6 changed files with 20 additions and 12 deletions

View File

@@ -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