diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-17 11:52:38 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-17 11:52:38 +0100 |
| commit | b959828115bf2e1ccbbbd4baba540660665d1091 (patch) | |
| tree | b2779f319f538fac3f6b3f40f1e7a8eda9debe8c | |
| parent | ea1269577fcd9d9b05f4b29ae2ad0d7c4c9a6ca2 (diff) | |
Add trailing new line to url list after removing read url
Trailing new line is needed so that when the next url is added it
appears on its own line
| -rw-r--r-- | public/read/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/read/index.php b/public/read/index.php index 87857da..74bb4ed 100644 --- a/public/read/index.php +++ b/public/read/index.php @@ -26,7 +26,7 @@ if (count($remaingUrls) === count($urls)) { respondAndExit(404, 'Not Found'); } -if (!file_put_contents($config['path_to_file'], implode("\n", $remaingUrls))) { +if (!file_put_contents($config['path_to_file'], implode("\n", $remaingUrls)."\n")) { respondAndExit(500, 'Internal Server Error'); } |
