From b959828115bf2e1ccbbbd4baba540660665d1091 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sat, 17 Jul 2021 11:52:38 +0100 Subject: 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 --- public/read/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } -- cgit v1.2.3-13-gbd6f