Don't try to play with the comments in passive detection, just ignore them

This commit is contained in:
erwanlr
2014-09-02 20:42:17 +02:00
parent 96ae8ade5d
commit bd8e6db092
4 changed files with 14 additions and 21 deletions

View File

@@ -73,10 +73,6 @@ def add_trailing_slash(url)
url =~ /\/$/ ? url : "#{url}/"
end
def remove_conditional_comments(text)
text.gsub(/\<\!--\[if[^>]+>(.*?)\<\!\[end[^>]+>/im, '\1')
end
# loading the updater
require_files_from_directory(UPDATER_LIB_DIR)
@updater = UpdaterFactory.get_updater(ROOT_DIR)