From c62d9cbcf360621adf9ad80f5ed9b5087d00f1a9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Feb 2016 15:32:05 +0000 Subject: [PATCH] Apply trim --- src/freedombone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 5f90f504..bcf0ac6a 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8949,7 +8949,7 @@ function expire_gnu_social_posts { echo '' >> $gnusocial_expire_script echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script echo '$username="root";' >> $gnusocial_expire_script - echo "\$password=file_get_contents(\"$DATABASE_PASSWORD_FILE\");" >> $gnusocial_expire_script + echo "\$password=trim(file_get_contents(\"$DATABASE_PASSWORD_FILE\"));" >> $gnusocial_expire_script echo '$database="gnusocial";' >> $gnusocial_expire_script echo '' >> $gnusocial_expire_script echo 'if (!$link = mysql_connect("localhost", $username, $password)) {' >> $gnusocial_expire_script