Fix #2894: Use [[:space:]] instead of \s in regexes.

This commit is contained in:
evazion
2018-09-20 19:13:31 -05:00
parent 29cdaddd86
commit 03abbd0683
24 changed files with 56 additions and 44 deletions

View File

@@ -199,7 +199,7 @@ class PostPresenter < Presenter
end
def has_sequential_navigation?(params)
return false if params[:tags] =~ /(?:^|\s)(?:order|ordfav|ordpool):/i
return false if Tag.has_metatag?(params[:tags], :order, :ordfav, :ordpool)
return false if params[:pool_id].present? || params[:favgroup_id].present?
return CurrentUser.user.enable_sequential_post_navigation
end