Browse Source

test escaping url

For illust
master
Daniel Muckerman 6 years ago
parent
commit
2791023eb1
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      slack-pixiv.rb
  2. +1
    -0
      slack-pixiv/commands/illust.rb

+ 1
- 0
slack-pixiv.rb View File

@ -2,6 +2,7 @@ require 'slack-ruby-bot'
require 'wolfram' require 'wolfram'
require 'mechanize' require 'mechanize'
require 'nokogiri' require 'nokogiri'
require 'uri'
require 'slack-pixiv/commands/illust' require 'slack-pixiv/commands/illust'
require 'slack-pixiv/commands/member' require 'slack-pixiv/commands/member'
require 'slack-pixiv/app' require 'slack-pixiv/app'

+ 1
- 0
slack-pixiv/commands/illust.rb View File

@ -15,6 +15,7 @@ module SlackMathbot
else else
pixiv_url = "http://www.pixiv.net/member_illust.php" + _match[:url][0..-1] pixiv_url = "http://www.pixiv.net/member_illust.php" + _match[:url][0..-1]
end end
pixiv_url = URI.unescape(pixiv_url)
puts pixiv_url puts pixiv_url
# Create iOS Illustration URL, regex pixiv_url to # Create iOS Illustration URL, regex pixiv_url to

Loading…
Cancel
Save