Browse Source

also accept the space as a separator

master
Paolo Asperti 1 year ago
parent
commit
f3963077dc
Signed by: paspo
GPG Key ID: 06D46905D19D5182
  1. 8
      get.php

8
get.php

@ -7,8 +7,12 @@ echo '; generated on: ' . $date->format('Y-m-d H:i:s'). "\n;\n";
$curdir = realpath('.');
// accept + and , as separators
$v = explode(',',str_replace("+", ",", $_GET['combine']));
// accept space, + and , as separators
$s = $_GET['combine'];
$s = str_replace('+', ',', $s);
$s = str_replace(' ', ',', $s);
$v = explode(',', $s);
foreach ($v as $item) {
if (strpos($item, '../') !== false) continue;
$fname = $curdir . '/' . $item . '.list.resolved';

Loading…
Cancel
Save