Просмотр исходного кода

Prevent crashing when database password has % as part of it.

Zoey76 4 лет назад
Родитель
Сommit
542be640e5
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 1
      pom.xml
  2. 3 0
      src/main/java/com/l2jserver/cli/config/ServerConfiguration.java

+ 1 - 1
pom.xml

@@ -3,7 +3,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>com.l2jserver</groupId>
 	<artifactId>l2j-server-cli</artifactId>
-	<version>1.0.2</version>
+	<version>1.0.3</version>
 	<name>L2J Server Command Line</name>
 	<properties>
 		<maven.compiler.source>11</maven.compiler.source>

+ 3 - 0
src/main/java/com/l2jserver/cli/config/ServerConfiguration.java

@@ -1,5 +1,7 @@
 package com.l2jserver.cli.config;
 
+import static org.aeonbits.owner.Config.DisableableFeature.PARAMETER_FORMATTING;
+
 import org.aeonbits.owner.Mutable;
 
 /**
@@ -22,6 +24,7 @@ public interface ServerConfiguration extends Mutable {
 	String getDatabaseUser();
 	
 	@Key("DatabasePassword")
+	@DisableFeature(PARAMETER_FORMATTING)
 	String getDatabasePassword();
 	
 	@Key("DatabaseConnectionPool")