diff --git a/src/InternetSearch/BrowserSearchAction.java b/src/InternetSearch/BrowserSearchAction.java index 77a66c4f..2406bcbb 100644 --- a/src/InternetSearch/BrowserSearchAction.java +++ b/src/InternetSearch/BrowserSearchAction.java @@ -56,33 +56,33 @@ public final void actionPerformed(ActionEvent e) { String searchContent =null; if (tableModel.getClass().equals(LineTableModel.class)) { - InfoTuple result = ((LineTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((LineTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } if (tableModel.getClass().equals(SearchTableModel.class)) { - InfoTuple result = ((SearchTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((SearchTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } if (tableModel.getClass().equals(TargetTableModel.class)) { - InfoTuple result = ((TargetTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((TargetTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } - if (StringUtils.isEmpty(searchContent) || StringUtils.isEmpty(searchType)) { + if (StringUtils.isEmpty(searchContent) || StringUtils.isEmpty(searchType)) return; - searchContent = SearchEngine.buildSearchDork(searchContent, engine, searchType); - String url = buildSearchUrl(engine,searchContent); - try { - Commons.browserOpen(url, null); - } catch (Exception err) { - err.printStackTrace(BurpExtender.getStderr()); - } + searchContent = SearchEngine.buildSearchDork(searchContent, engine, searchType); + String url = buildSearchUrl(engine,searchContent); + + try { + Commons.browserOpen(url, null); + } catch (Exception err) { + err.printStackTrace(BurpExtender.getStderr()); } } }