Browse Source

fix ending slash

fs
yggverse 2 months ago
parent
commit
433700d2d6
  1. 13
      src/server.php

13
src/server.php

@ -17,11 +17,14 @@ if (empty($argv[1]))
// Init server path // Init server path
define( define(
'PULSAR_SERVER_DIRECTORY', 'PULSAR_SERVER_DIRECTORY',
str_starts_with($argv[1], DIRECTORY_SEPARATOR) ? $argv[1] : rtrim(
realpath( str_starts_with($argv[1], DIRECTORY_SEPARATOR) ? $argv[1] :
__DIR__ . realpath(
DIRECTORY_SEPARATOR . '..' . __DIR__ .
DIRECTORY_SEPARATOR . $argv[1] DIRECTORY_SEPARATOR . '..' .
DIRECTORY_SEPARATOR . $argv[1]
),
DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR
); );

Loading…
Cancel
Save