From bf3ba9c2cf3dad1fbf5d7583315104f7ec706454 Mon Sep 17 00:00:00 2001 From: ghostrigger Date: Thu, 12 Jun 2014 02:37:42 +0800 Subject: [PATCH] update #1866 limit sankakucomplex subdomains followe up to 1119211db098737fa33deb03f2caae0355d1b39d; limit to available subdomains, only c3 is in the database so far --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index d2553b621..21e61e7da 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -315,7 +315,7 @@ class Post < ActiveRecord::Base when %r{\Ahttps?://s(?:content|photos)-[^/]+\.fbcdn.net/hphotos-.+/\d+_(\d+)_\d+_[no]\.}i "https://www.facebook.com/photo.php?fbid=#{$1}" - when %r{\Ahttp://c(?:s|han|\d{1}).sankakucomplex.com/data(?:/sample)?/(?:[a-f0-9]{2}/){2}(?:sample-|preview)?([a-f0-9]{32})}i + when %r{\Ahttp://c(?:s|han|[1-4]).sankakucomplex.com/data(?:/sample)?/(?:[a-f0-9]{2}/){2}(?:sample-|preview)?([a-f0-9]{32})}i "http://chan.sankakucomplex.com/en/post/show?md5=#{$1}" else