Skip to content
Snippets Groups Projects
Commit ec8e1e85 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove invalid characters from welcome

parent ffc3ea2c
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,13 @@ function install_interactive_gnusocial {
GNUSOCIAL_DETAILS_COMPLETE="yes"
fi
done
# remove any invalid characters
if [ ${#GNUSOCIAL_WELCOME_MESSAGE} -gt 0 ]; then
new_welcome=$(echo "$GNUSOCIAL_WELCOME_MESSAGE" | sed "s|'||g")
GNUSOCIAL_WELCOME_MESSAGE="$new_welcome"
fi
# save the results in the config file
write_config_param "GNUSOCIAL_CODE" "$GNUSOCIAL_CODE"
write_config_param "GNUSOCIAL_WELCOME_MESSAGE" "$GNUSOCIAL_WELCOME_MESSAGE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment