Browse Source

Apply trim

Bob Mottram 9 years ago
parent
commit
c62d9cbcf3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone

+ 1
- 1
src/freedombone View File

@@ -8949,7 +8949,7 @@ function expire_gnu_social_posts {
8949 8949
     echo '' >> $gnusocial_expire_script
8950 8950
     echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script
8951 8951
     echo '$username="root";' >> $gnusocial_expire_script
8952
-    echo "\$password=file_get_contents(\"$DATABASE_PASSWORD_FILE\");" >> $gnusocial_expire_script
8952
+    echo "\$password=trim(file_get_contents(\"$DATABASE_PASSWORD_FILE\"));" >> $gnusocial_expire_script
8953 8953
     echo '$database="gnusocial";' >> $gnusocial_expire_script
8954 8954
     echo '' >> $gnusocial_expire_script
8955 8955
     echo 'if (!$link = mysql_connect("localhost", $username, $password)) {' >> $gnusocial_expire_script