Small RDAP fix

This commit is contained in:
Pinga 2023-08-04 16:51:42 +03:00
parent a13da52955
commit 80c20c9370

View file

@ -172,7 +172,7 @@ function handleDomainQuery($request, $response, $pdo, $domainName) {
// Send the RDAP response // Send the RDAP response
$response->header('Content-Type', 'application/json'); $response->header('Content-Type', 'application/json');
$response->end(json_encode($rdapResponse)); $response->end(json_encode($rdapResponse, JSON_UNESCAPED_SLASHES));
} catch (PDOException $e) { } catch (PDOException $e) {
$response->end(json_encode(['error' => 'Error connecting to the RDAP database'])); $response->end(json_encode(['error' => 'Error connecting to the RDAP database']));
return; return;