PLUGINS, NTFY, handleEmpty work⤵

This commit is contained in:
Jokob-sk
2023-10-19 08:08:24 +11:00
parent 1a3cf49c00
commit 5d64433be0
18 changed files with 594 additions and 128 deletions

View File

@@ -1,6 +1,7 @@
from time import strftime
import pytz
import sys
import re
import base64
from datetime import datetime
@@ -38,7 +39,11 @@ def handleEmpty(input):
if input == '' or None:
return 'null'
else:
return input
# Validate and sanitize message content
# Remove potentially problematic characters if string
if isinstance(input, str):
input = re.sub(r'[^\x00-\x7F]+', ' ', input)
return input
# -------------------------------------------------------------------
def decodeBase64(inputParamBase64):