* Fixed bug with Redstone Controller

* Fixed LICENSE
This commit is contained in:
Nicolas BARBOTIN 2018-02-15 16:44:07 +01:00
parent 0f6521db1a
commit e41b3845d2
3 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Even though the source code is public, the following license:
Even though the source code is public, the following license applies:
This software, its source code and its binaries are Copyright © 2018 Nicolas BARBOTIN and are the intellectual property of the author.
It may be not be reproduced under any circumstances except for personal, private use as long as it remains in its unaltered, unedited form.

View File

@ -147,7 +147,7 @@ public abstract class Util {
}
public static String addProtocol(String str) {
return str.contains("://") ? str : ("http://" + str);
return (str.isEmpty() || str.contains("://")) ? str : ("http://" + str);
}
public static boolean isFileNameInvalid(String fname) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 B