File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
main/java/io/supertokens/webserver
test/java/io/supertokens/test/multitenant/api Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77
88## [ unreleased]
99
10+ ## [ 6.0.8] - 2023-08-01
11+
12+ - Fixes CUD validation starting with number.
13+
1014## [ 6.0.7] - 2023-07-28
1115
1216- Fixes session removing for user with useridmapping when disassociating from tenant.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" }
1919// }
2020// }
2121
22- version = " 6.0.7 "
22+ version = " 6.0.8 "
2323
2424
2525repositories {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static String normalizeAndValidateConnectionUriDomain(String connectionUr
4747 throw new ServletException (new WebserverAPI .BadRequestException ("connectionUriDomain should not be an empty String" ));
4848 }
4949
50- String hostnameRegex = "^[a-z][a- z0-9-]+(\\ .[a-z] [a-z0-9-]+)*(:[0-9]+)?$" ;
50+ String hostnameRegex = "^[a-z0-9-]+(\\ .[a-z0-9-]+)*(:[0-9]+)?$" ;
5151 String ipRegex = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\ .){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(:[0-9]+)?$" ;
5252
5353 if (!connectionUriDomain .matches (hostnameRegex ) && !connectionUriDomain .matches (ipRegex )) {
Original file line number Diff line number Diff line change @@ -487,6 +487,7 @@ public void testConnectionUriDomainValidationUtil() throws Exception {
487487 "sub-domain.example.com" ,
488488 "sub-domain.example.com:3567" ,
489489 "hello.co.uk" ,
490+ "58hello.abc.com"
490491 };
491492 String [] invalidDomains = new String []{
492493 "http://localhost" ,
You can’t perform that action at this time.
0 commit comments