mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: raise a 404 if click tracker gets no url
This commit is contained in:
parent
0bbf6354eb
commit
376b28b0ed
@ -3,6 +3,8 @@ class ClicksController < ApplicationController
|
||||
skip_before_filter :check_xhr
|
||||
|
||||
def track
|
||||
raise Discourse::NotFound unless params[:url]
|
||||
|
||||
params = track_params.merge(ip: request.remote_ip)
|
||||
|
||||
if params[:topic_id].present? || params[:post_id].present?
|
||||
|
Loading…
Reference in New Issue
Block a user