From 5a67328a00b704a9a16e2e14eea41950baad49e5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 27 Apr 2024 15:45:30 +0300 Subject: [PATCH] escape special chars --- src/nex.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nex.php b/src/nex.php index e04fc4d..b3d24f0 100644 --- a/src/nex.php +++ b/src/nex.php @@ -195,7 +195,7 @@ $server->start( urldecode( $request ), - FILTER_SANITIZE_URL // @TODO + FILTER_SANITIZE_URL ) ); @@ -280,8 +280,8 @@ $server->start( (int) !empty($response), parse_url($connect, PHP_URL_HOST), parse_url($connect, PHP_URL_PORT), - empty($request) ? '/' : trim($request), - $goal + str_replace('%', '%%', empty($request) ? '/' : trim($request)), + str_replace('%', '%%', $goal) ], NEXT_DUMP ) . PHP_EOL