Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= Handler 301
Handler 301 is a plugin for Ruby on Rails that lets you easily manage 301 redirections in on place in order to redirect them to current named routes.
All necessary informations are available on the wiki : http://wiki.github.com/kwi/handler301
== Configuration example :
In the config/handler301.yml of your rails app :
"old_url.html": home_path "old_url_without_path.html": home "product_number_one.html": products_path :id => 1
Then, configure a controller that match non matching routes in your config/routes.rb
==== Rails2
ActionController::Routing::Routes.draw do |map| map.connect "*path", :controller => 'error', :action => 'handle404' end
==== Rails3
MkdBaseApp::Application.routes.draw do match "*path" => 'error#handle404' end
And finally, in your ErrorController (or whatever the name of your non matching routes controller) :
class ErrorController < ApplicationController def handle404 unless handle_301(request.path, request.query_parameters)
# Do your stuff here
end
end
end
== TODO
Copyright (c) 2010 Guillaume Luccisano - g-mai|: guillaume.luccisano, released under the MIT license
FAQs
Unknown package
We found that handler301 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.