Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagiotis Papadopoulos committed Jul 7, 2017
1 parent 7d5a31b commit b905a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csync_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def checkCSinReffererParams(curRow)
exclude=["cb","token", "nocache"]
ids=0
curRow['httpRef']=curRow['httpRef'].gsub("??","").gsub("?https","https") if curRow['httpRef'].include? "?https://"
curRow['url']=curRow['httpRef'].gsub("http://","").gsub("https://","")
curRow['httpRef'].split("://").last if curRow['httpRef'].include? "://"
curRow['url']=curRow['httpRef']
urlParts=curRow['url'].split("?")[0..1]
return found if (urlParts.last==nil)
return found if urlParts.first=="::0"
Expand Down

0 comments on commit b905a26

Please sign in to comment.