mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: raise a 404 if click tracker gets no url
This commit is contained in:
parent
0bbf6354eb
commit
376b28b0ed
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue