aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-23 13:28:02 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-27 20:11:30 +0100
commit34c8f558e595d4f90e46e3753c8455b0b515771a (patch)
tree5419a51d724a3ce9a22981cabadd6d0dab44e7fb /application/front/controller
parent6a716758871885e5bd045d1981f890dbf3343b1d (diff)
downloadShaarli-34c8f558e595d4f90e46e3753c8455b0b515771a.tar.gz
Shaarli-34c8f558e595d4f90e46e3753c8455b0b515771a.tar.zst
Shaarli-34c8f558e595d4f90e46e3753c8455b0b515771a.zip
Bulk creation: ignore blank lines
Diffstat (limited to 'application/front/controller')
-rw-r--r--application/front/controller/admin/ShaarePublishController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/front/controller/admin/ShaarePublishController.php b/application/front/controller/admin/ShaarePublishController.php
index 65fdcdee..ddcffdc7 100644
--- a/application/front/controller/admin/ShaarePublishController.php
+++ b/application/front/controller/admin/ShaarePublishController.php
@@ -46,6 +46,9 @@ class ShaarePublishController extends ShaarliAdminController
46 46
47 $links = []; 47 $links = [];
48 foreach ($urls as $url) { 48 foreach ($urls as $url) {
49 if (empty($url)) {
50 continue;
51 }
49 $link = $this->buildLinkDataFromUrl($request, $url); 52 $link = $this->buildLinkDataFromUrl($request, $url);
50 $data = $this->buildFormData($link, $link['linkIsNew'], $request); 53 $data = $this->buildFormData($link, $link['linkIsNew'], $request);
51 $data['token'] = $this->container->sessionManager->generateToken(); 54 $data['token'] = $this->container->sessionManager->generateToken();