Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
rails-intl-tel-input
Advanced tools
Integrate with intl-tel-input to provide international telephone numbers input and form helper.
Add this line to your application's Gemfile:
gem 'rails-intl-tel-input'
And then execute:
bundle
Or install it yourself as:
gem install rails-intl-tel-input
Make sure you required jQuery and add the following to /app/assets/javascripts/application.js:
//= require intlTelInput
Add the following to /app/assets/stylesheets/application.css:
/*
*= require intlTelInput
*/
You can use intl_tel_input_tag
and intl_tel_input
.
<%= intl_tel_input_tag(name, value, intl_tel_input_options, html_options) %>
<%= intl_tel_input_tag(:tel, 'red', {:allowDropdown => false}, {:class => 'tel'}) %>
<%= intl_tel_input_tag(:tel) %>
or form builder
<% form_for @item do |f| %>
<%= f.intl_tel_input(method, intl_tel_input_options, html_options) %>
<%= f.intl_tel_input(:tel, {:allowDropdown => false}, {:class => 'tel'}) %>
<%= f.intl_tel_input(:tel) %>
<% end %>
The gem is available as open source under the terms of the MIT License.
The project's website is located at https://github.com/emn178/rails-intl-tel-input
Author: Chen, Yi-Cyuan (emn178@gmail.com)
FAQs
Unknown package
We found that rails-intl-tel-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.