aboutsummaryrefslogtreecommitdiffstats
path: root/unshorturl
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-07-10 15:58:01 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-07-10 15:58:47 +0200
commit9f2ec2f89ee9cbed6e5d74b1f7b5132cc8b44ea7 (patch)
treec2c5d91f6d6b707eef9956b98115356627873700 /unshorturl
parent8dfad02d8e048576cee6fe15747b5b381f02f05b (diff)
downloadvolse-hz-addons-9f2ec2f89ee9cbed6e5d74b1f7b5132cc8b44ea7.tar.gz
volse-hz-addons-9f2ec2f89ee9cbed6e5d74b1f7b5132cc8b44ea7.tar.bz2
volse-hz-addons-9f2ec2f89ee9cbed6e5d74b1f7b5132cc8b44ea7.zip
unshorturl: /g modifier not supported in php regex
Diffstat (limited to 'unshorturl')
-rw-r--r--unshorturl/unshorturl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php
index af7e902..bf79fe3 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]', $body['html']);
+ preg_replace('/https?:\/\/bit.ly\/[^\s]+/', '[hidden bitly link]', $body['html']);
}