Skip to content

Commit

Permalink
WebInterface: Fix some typos in method and variable names
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 14, 2016
1 parent d6e9b45 commit 9a1bcf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Goobi/src/org/goobi/production/cli/WebInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
}

// check if command is allowed for used IP
List<String> allowedCommandos = WebInterfaceConfig.getCredencials(ip, password);
if (!allowedCommandos.contains(command)) {
List<String> allowedCommands = WebInterfaceConfig.getCredentials(ip, password);
if (!allowedCommands.contains(command)) {
// error, no command found
generateAnswer(resp, 401, "command not allowed", "command " + command + " not allowed for your IP (" + ip + ")");
return;
Expand Down
2 changes: 1 addition & 1 deletion Goobi/src/org/goobi/production/cli/WebInterfaceConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public class WebInterfaceConfig {

public static List<String> getCredencials(String requestIp, String requestPassword) {
public static List<String> getCredentials(String requestIp, String requestPassword) {
ArrayList<String> allowed = new ArrayList<String>();
try {
XMLConfiguration config = new XMLConfiguration(new Helper().getGoobiConfigDirectory() +"goobi_webapi.xml");
Expand Down

0 comments on commit 9a1bcf4

Please sign in to comment.