[webapplicationfingerprinter] r7 committed - fixes for issue #3

2 views
Skip to first unread message

webapplicatio...@googlecode.com

unread,
Jul 31, 2010, 7:34:58 PM7/31/10
to webapplicatio...@googlegroups.com
Revision: 7
Author: richard.sammet
Date: Sat Jul 31 16:34:21 2010
Log: fixes for issue #3


http://code.google.com/p/webapplicationfingerprinter/source/detail?r=7

Modified:
/trunk/lib/wafp_https.rb
/trunk/wafp.rb

=======================================
--- /trunk/lib/wafp_https.rb Mon Dec 28 15:55:04 2009
+++ /trunk/lib/wafp_https.rb Sat Jul 31 16:34:21 2010
@@ -99,7 +99,12 @@
=end

require "lib/wafp_http.rb"
-require 'openssl'
+begin
+ require 'openssl'
+rescue LoadError
+ puts "ERROR: please install openssl for ruby!"
+ exit 0
+end

module Net

=======================================
--- /trunk/wafp.rb Sat Jan 23 13:51:30 2010
+++ /trunk/wafp.rb Sat Jul 31 16:34:21 2010
@@ -43,7 +43,12 @@
rescue LoadError
end
require 'getoptlong'
-require 'sqlite3'
+begin
+ require 'sqlite3'
+rescue LoadError
+ puts "ERROR: please install sqlite3 for ruby!"
+ exit 0
+end
# this is a modified version of net/http
require "lib/wafp_http.rb"
require "lib/wafp_https.rb"
@@ -459,8 +464,7 @@
req = nil
rrtry = 0
md5sum = nil
- path = path.to_s.gsub(/^\.\//, '')
- path = turi.path !~ /\/$/?("#{turi.path}/"):(turi.path), path
+ path = path.to_s.gsub(/^\.\//, '/')
# fetching the static files...
begin
Timeout::timeout(tout) do

Reply all
Reply to author
Forward
0 new messages