aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/index.php b/index.php
index 7210c71f..07470a08 100644
--- a/index.php
+++ b/index.php
@@ -1330,10 +1330,17 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
1330 die('Wrong token.'); 1330 die('Wrong token.');
1331 } 1331 }
1332 1332
1333 if (strpos($_GET['lf_linkdate'], ' ') !== false) { 1333 $ids = trim($_GET['lf_linkdate']);
1334 $ids = array_values(array_filter(preg_split('/\s+/', escape($_GET['lf_linkdate'])))); 1334 if (strpos($ids, ' ') !== false) {
1335 // multiple, space-separated ids provided
1336 $ids = array_values(array_filter(preg_split('/\s+/', escape($ids))));
1335 } else { 1337 } else {
1336 $ids = [$_GET['lf_linkdate']]; 1338 // only a single id provided
1339 $ids = [$ids];
1340 }
1341 // assert at least one id is given
1342 if(!count($ids)){
1343 die('no id provided');
1337 } 1344 }
1338 foreach ($ids as $id) { 1345 foreach ($ids as $id) {
1339 $id = (int) escape($id); 1346 $id = (int) escape($id);