changeset 5961:7308ec4aaad1

mod_http_oauth2: Fix error due to mistake in 5f8a306c8306 Was passing the table instead of the host
author Kim Alvefur <zash@zash.se>
date Sat, 07 Sep 2024 15:20:23 +0200
parents 538f468f9a65
children a86720654fb9
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Aug 31 14:46:33 2024 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sat Sep 07 15:20:23 2024 +0200
@@ -42,7 +42,7 @@
 		if encodings.stringprep.nameprep(url_parts.host) ~= url_parts.host then
 			return false;
 		end
-		if not encodings.idna.to_ascii(url_parts) then
+		if not encodings.idna.to_ascii(url_parts.host) then
 			return false;
 		end
 	end