Permalink
Browse files

maybe fixed an issue with pregrabbing content in the url hook. maybe...

  • Loading branch information...
1 parent b719071 commit e7a710120ee1ad39c32e30f0568cf515641c8216 @contra committed Mar 23, 2011
View
@@ -62,7 +62,7 @@
<file leaf-file-name="URL.java" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/java/net/URL.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="35" column="20" selection-start="1218" selection-end="1218" vertical-scroll-proportion="0.44117647">
+ <state line="114" column="55" selection-start="3860" selection-end="3860" vertical-scroll-proportion="0.4819079">
<folding />
</state>
</provider>
@@ -72,9 +72,7 @@
<entry file="file://$PROJECT_DIR$/src/java/util/jar/JarInputStream.java">
<provider selected="true" editor-type-id="text-editor">
<state line="31" column="110" selection-start="963" selection-end="963" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <folding />
</state>
</provider>
</entry>
@@ -83,9 +81,7 @@
<entry file="file://$PROJECT_DIR$/src/java/contra/ContraUtil.java">
<provider selected="true" editor-type-id="text-editor">
<state line="13" column="67" selection-start="367" selection-end="367" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <folding />
</state>
</provider>
</entry>
@@ -94,9 +90,7 @@
<entry file="file://$PROJECT_DIR$/src/java/net/URLClassLoader.java">
<provider selected="true" editor-type-id="text-editor">
<state line="16" column="33" selection-start="457" selection-end="457" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <folding />
</state>
</provider>
</entry>
@@ -158,8 +152,6 @@
<sortByType />
</navigator>
<panes>
- <pane id="Scope" />
- <pane id="Favorites" />
<pane id="ProjectPane">
<subPane>
<PATH>
@@ -220,19 +212,21 @@
</PATH>
</subPane>
</pane>
+ <pane id="Favorites" />
+ <pane id="Scope" />
<pane id="PackagesPane" />
</panes>
</component>
<component name="PropertiesComponent">
- <property name="project.structure.last.edited" value="Artifacts" />
<property name="GoToFile.includeJavaFiles" value="false" />
- <property name="project.structure.proportion" value="0.0" />
- <property name="GoToClass.toSaveIncludeLibraries" value="false" />
+ <property name="project.structure.last.edited" value="Artifacts" />
<property name="OverrideImplement.combined" value="true" />
+ <property name="GoToClass.toSaveIncludeLibraries" value="false" />
+ <property name="project.structure.proportion" value="0.0" />
<property name="MemberChooser.sorted" value="false" />
<property name="MemberChooser.showClasses" value="true" />
- <property name="project.structure.side.proportion" value="0.2" />
<property name="GoToClass.includeLibraries" value="false" />
+ <property name="project.structure.side.proportion" value="0.2" />
<property name="MemberChooser.copyJavadoc" value="false" />
</component>
<component name="Regex">
@@ -368,20 +362,20 @@
<servers />
</component>
<component name="ToolWindowManager">
- <frame x="-4" y="-4" width="1688" height="1014" extended-state="7" />
+ <frame x="-4" y="-4" width="1288" height="764" extended-state="7" />
<editor active="true" />
<layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32628062" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32561728" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32983023" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24862216" sideWeight="0.6737194" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24817519" sideWeight="0.6743827" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -436,41 +430,27 @@
</entry>
<entry file="file://$PROJECT_DIR$/ContraHook.iml">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/java/util/jar/JarInputStream.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="31" column="110" selection-start="963" selection-end="963" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
- </state>
+ <state line="31" column="110" selection-start="963" selection-end="963" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/java/contra/ContraUtil.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="13" column="67" selection-start="367" selection-end="367" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
- </state>
+ <state line="13" column="67" selection-start="367" selection-end="367" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/java/net/URLClassLoader.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="33" selection-start="457" selection-end="457" vertical-scroll-proportion="0.0">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
- </state>
+ <state line="16" column="33" selection-start="457" selection-end="457" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/java/net/URL.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="35" column="20" selection-start="1218" selection-end="1218" vertical-scroll-proportion="0.44117647">
+ <state line="114" column="55" selection-start="3860" selection-end="3860" vertical-scroll-proportion="0.4819079">
<folding />
</state>
</provider>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -103,7 +103,7 @@ public URL(String spec) throws MalformedURLException {
public String filter(String url, String des) {
String content;
try {
- InputStreamReader in = new InputStreamReader((InputStream) getContent());
+ InputStreamReader in = new InputStreamReader(openStream());
BufferedReader buff = new BufferedReader(in);
content = buff.readLine();
} catch (Exception e) {
@@ -112,6 +112,7 @@ public String filter(String url, String des) {
String res = "URL Hook: \"" + url + "\", Query: \"" + getQuery() + "\", Content: \"" + content + "\", Type: " + des;
System.out.println(res);
ContraUtil.log(res);
+ //Implement any logging/swapping/filtering here
/*
if (url.startsWith("https://impsoft.net/nexus/hashing.php")) {
return "http://recoders.org/contra/misc/hashing.php";

0 comments on commit e7a7101

Please sign in to comment.