aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--managerservice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/managerservice.php b/managerservice.php
index ee86e3c..48b14a9 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -57,8 +57,8 @@ $callbacks = $DB->get_records_select("local_webhooks_service", null, null, $DB->
/* Upload settings as a file */
if (boolval($backupservices)) {
- $filecontent = serialize($callbacks);
- $filename = "webhooks_" . date("U") . ".backup";
+ $filecontent = base64_encode(gzcompress(serialize($callbacks), 9));
+ $filename = "webhooks_" . date("U") . ".backup";
send_file($filecontent, $filename, 0, 0, true, true);
}