IDN support: encode non-ascii domain names

This commit is contained in:
dctabuyz
2015-01-07 12:55:26 +05:00
parent 5adefda286
commit a9e161268c
3 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ describe 'WpscanOptions' do
@wpscan_options.url = url
expect(@wpscan_options.url).to be === url
end
it 'should encode IDN' do
@wpscan_options.url = 'http://пример.испытание/'
expect(@wpscan_options.url).to be === 'http://xn--e1afmkfd.xn--80akhbyknj4f/'
end
end
describe '#threads=' do