Browse Source

Remove invalid characters from welcome

Bob Mottram 8 years ago
parent
commit
ec8e1e850c
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-app-gnusocial

+ 7
- 0
src/freedombone-app-gnusocial View File

@@ -165,6 +165,13 @@ function install_interactive_gnusocial {
165 165
                 GNUSOCIAL_DETAILS_COMPLETE="yes"
166 166
             fi
167 167
         done
168
+
169
+        # remove any invalid characters
170
+        if [ ${#GNUSOCIAL_WELCOME_MESSAGE} -gt 0 ]; then
171
+            new_welcome=$(echo "$GNUSOCIAL_WELCOME_MESSAGE" | sed "s|'||g")
172
+            GNUSOCIAL_WELCOME_MESSAGE="$new_welcome"
173
+        fi
174
+
168 175
         # save the results in the config file
169 176
         write_config_param "GNUSOCIAL_CODE" "$GNUSOCIAL_CODE"
170 177
         write_config_param "GNUSOCIAL_WELCOME_MESSAGE" "$GNUSOCIAL_WELCOME_MESSAGE"