Browse Source

enforce replacements data type

nex-php
yggverse 7 months ago
parent
commit
c8bd899811
  1. 12
      src/nex.php

12
src/nex.php

@ -276,12 +276,12 @@ $server->start(
'{goal}', '{goal}',
], ],
[ [
date('c'), (string) date('c'),
(int) !empty($response), (string) (int) !empty($response),
parse_url($connect, PHP_URL_HOST), (string) parse_url($connect, PHP_URL_HOST),
parse_url($connect, PHP_URL_PORT), (string) parse_url($connect, PHP_URL_PORT),
str_replace('%', '%%', empty($request) ? '/' : trim($request)), (string) str_replace('%', '%%', empty($request) ? '/' : trim($request)),
str_replace('%', '%%', $goal) (string) str_replace('%', '%%', $goal)
], ],
NEXT_DUMP NEXT_DUMP
) . PHP_EOL ) . PHP_EOL

Loading…
Cancel
Save