Browse Source

escape special chars

nex-php
yggverse 7 months ago
parent
commit
5a67328a00
  1. 6
      src/nex.php

6
src/nex.php

@ -195,7 +195,7 @@ $server->start(
urldecode( urldecode(
$request $request
), ),
FILTER_SANITIZE_URL // @TODO FILTER_SANITIZE_URL
) )
); );
@ -280,8 +280,8 @@ $server->start(
(int) !empty($response), (int) !empty($response),
parse_url($connect, PHP_URL_HOST), parse_url($connect, PHP_URL_HOST),
parse_url($connect, PHP_URL_PORT), parse_url($connect, PHP_URL_PORT),
empty($request) ? '/' : trim($request), str_replace('%', '%%', empty($request) ? '/' : trim($request)),
$goal str_replace('%', '%%', $goal)
], ],
NEXT_DUMP NEXT_DUMP
) . PHP_EOL ) . PHP_EOL

Loading…
Cancel
Save