potential fix for #2404
This commit is contained in:
@@ -6,10 +6,10 @@ module Sources
|
||||
end
|
||||
|
||||
def referer_url(template)
|
||||
if template.params[:ref] =~ /nijie\.info\/view\.php.+id=\d+/ && template.params[:url] =~ /pic\d+\.nijie.info\/nijie_picture\//
|
||||
template.params[:ref]
|
||||
if @referer_url =~ /nijie\.info\/view\.php.+id=\d+/ && @url =~ /pic\d+\.nijie.info\/nijie_picture\//
|
||||
@referer_url
|
||||
else
|
||||
template.params[:url]
|
||||
@url
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user