Compare commits

...

3 Commits

Author SHA1 Message Date
idk
76d05d0d53 update I2PFirefoxProfileChecker.html 2022-09-07 04:35:28 -04:00
idk
7e6f11f6b3 update index.html 2022-09-07 04:34:45 -04:00
idk
b9c0fc5e38 fix unclosed scanner 2022-09-07 04:34:36 -04:00
5 changed files with 17 additions and 16 deletions

View File

@ -385,7 +385,7 @@
<span></span>
</a>
undoValue
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L137" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138" rel="nofollow">
[src]
</a>
</h3>
@ -422,7 +422,7 @@
<span></span>
</a>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L171" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172" rel="nofollow">
[src]
</a>
</h3>
@ -455,7 +455,7 @@
<span></span>
</a>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L198" rel="nofollow">
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199" rel="nofollow">
[src]
</a>
</h3>

View File

@ -91,7 +91,7 @@ package: net.i2p.i2pfirefox
| fileToBeModified | File | |
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L137)
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138)
+ Description:
+ Access: private
@ -105,7 +105,7 @@ package: net.i2p.i2pfirefox
| fileToBeModified | File | |
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L171)
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172)
+ Description: Return true if the file is valid.
+ Access: public
@ -117,7 +117,7 @@ package: net.i2p.i2pfirefox
| file | String | the file to check |
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L198)
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
+ Description: Return true if the extension directory is valid.
+ Access: public

View File

@ -317,7 +317,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete dir="plugin/eepsite/docroot/torrents/" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.0.32" />
<property name="release.number" value="0.0.33" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->

View File

@ -1,6 +1,6 @@
#! /usr/bin/env sh
export GITHUB_USER=eyedeekay
export GITHUB_REPO=i2p.plugins.firefox
export GITHUB_NAME="Fix URL argument passing"
export GITHUB_NAME="Fix unclosed scanner"
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
export GITHUB_TAG=0.0.32
export GITHUB_TAG=0.0.33

View File

@ -118,13 +118,14 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
String newString =
"\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
try {
Scanner scanner = new Scanner(file);
// now read the file line by line...
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (line.contains("browser.startup.homepage")) {
oldString = line.toString();
return undoValue(oldString, newString, fileToBeModified);
try (Scanner scanner = new Scanner(file)) {
// now read the file line by line...
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (line.contains("browser.startup.homepage")) {
oldString = line.toString();
return undoValue(oldString, newString, fileToBeModified);
}
}
}
} catch (FileNotFoundException e) {