Tighten a bit RoR detection (#2410)

* Tighten a bit RoR detection

Phusion passenger is used for Ruby, nodejs, Python
as well as other exotic things, there isn't a 50% chance of Ruby being
used when it's detected.

On the other hand, if `mod_rails` or `mod_rack` is present,
we can be certain that there is indeed Ruby on Rails behind
the website.

* Fix some silly things
main
jvoisin 6 years ago committed by Elbert Alias
parent 1c1bf48e16
commit d8195c7eed

@ -7462,7 +7462,7 @@
"X-Powered-By": "Phusion Passenger ?([\\d.]+)?\\;version:\\1" "X-Powered-By": "Phusion Passenger ?([\\d.]+)?\\;version:\\1"
}, },
"icon": "Phusion Passenger.png", "icon": "Phusion Passenger.png",
"website": "http://phusionpassenger.com" "website": "https://phusionpassenger.com"
}, },
"Pimcore": { "Pimcore": {
"cats": [ "cats": [
@ -8323,8 +8323,8 @@
18 18
], ],
"headers": { "headers": {
"Server": "(?:mod_rails|mod_rack|Phusion(?:\\.|_)Passenger)\\;confidence:50", "Server": "mod_(?:rails|rack)",
"X-Powered-By": "(?:mod_rails|mod_rack|Phusion[\\._ ]Passenger)(?: \\(mod_rails/mod_rack\\))?\\;confidence:50" "X-Powered-By": "mod_(?:rails|rack)"
}, },
"icon": "Ruby on Rails.png", "icon": "Ruby on Rails.png",
"implies": "Ruby", "implies": "Ruby",
@ -8332,7 +8332,7 @@
"csrf-param": "^authenticity_token$\\;confidence:50" "csrf-param": "^authenticity_token$\\;confidence:50"
}, },
"script": "/assets/application-[a-z\\d]{32}/\\.js\\;confidence:50", "script": "/assets/application-[a-z\\d]{32}/\\.js\\;confidence:50",
"website": "http://rubyonrails.org" "website": "https://rubyonrails.org"
}, },
"Ruxit": { "Ruxit": {
"cats": [ "cats": [

Loading…
Cancel
Save