aboutsummaryrefslogtreecommitdiffstats
path: root/unshorturl/unshorturl.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-07-10 15:36:08 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-07-10 15:36:08 +0200
commitf0602ec2f4c2234f1763aee2bd3e9062a65eaae4 (patch)
treed4730352c5772806d3fd949c92cd2b5ed09fecf0 /unshorturl/unshorturl.php
parent40e2432fffb2ee29e068288bfebc1eaaf964d08b (diff)
downloadvolse-hz-addons-f0602ec2f4c2234f1763aee2bd3e9062a65eaae4.tar.gz
volse-hz-addons-f0602ec2f4c2234f1763aee2bd3e9062a65eaae4.tar.bz2
volse-hz-addons-f0602ec2f4c2234f1763aee2bd3e9062a65eaae4.zip
unshorturl: Include post body to do replacement in
Diffstat (limited to 'unshorturl/unshorturl.php')
-rw-r--r--unshorturl/unshorturl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php
index abd2779..8b4e3be 100644
--- a/unshorturl/unshorturl.php
+++ b/unshorturl/unshorturl.php
@@ -27,5 +27,5 @@ function unshorturl_prepare_body(&$body) {
return;
}
- preg_replace('/https?:\/\/bit.ly\/[^\s]+/g', '[hidden bitly link]');
+ preg_replace('/https?:\/\/bit.ly\/[^\s]+/g', '[hidden bitly link]', $body['html']);
}