Fix vulnerable.
This commit is contained in:
parent
910a8278d3
commit
162b254f40
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -165,7 +165,7 @@
|
||||||
'</div>')
|
'</div>')
|
||||||
tp = $('<div class="event-container-one has-dialog"><div class="title_temp"></div><div class="duration_temp"></div><div class="event-content"></div>'+modal_tp+'</div>')
|
tp = $('<div class="event-container-one has-dialog"><div class="title_temp"></div><div class="duration_temp"></div><div class="event-content"></div>'+modal_tp+'</div>')
|
||||||
}else{
|
}else{
|
||||||
tp = $('<a class="event-container-one"><div class="title_temp"></div><div class="duration_temp"></div><div class="event-content"></div></a>').attr('href',v.url_linked)
|
tp = $('<a class="event-container-one"><div class="title_temp"></div><div class="duration_temp"></div><div class="event-content"></div></a>')
|
||||||
}
|
}
|
||||||
var sd = formate_datetime(v.start),
|
var sd = formate_datetime(v.start),
|
||||||
ed = formate_datetime(v.end),
|
ed = formate_datetime(v.end),
|
||||||
|
@ -189,6 +189,9 @@
|
||||||
event_temp.find('.event-header .duration').html(duration)
|
event_temp.find('.event-header .duration').html(duration)
|
||||||
}
|
}
|
||||||
event_temp.find('.event-containers').append(tp)
|
event_temp.find('.event-containers').append(tp)
|
||||||
|
if(v.url_linked != ''){
|
||||||
|
tp.attr('href',v.url_linked)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if (active_flag){
|
if (active_flag){
|
||||||
event_temp.addClass('active')
|
event_temp.addClass('active')
|
||||||
|
|
|
@ -2,13 +2,13 @@ require "rss"
|
||||||
class EventNewsFeedsController < ApplicationController
|
class EventNewsFeedsController < ApplicationController
|
||||||
include Admin::EventNewsHelper
|
include Admin::EventNewsHelper
|
||||||
def feed
|
def feed
|
||||||
uid = params[:uid]
|
uid = params[:uid].to_s
|
||||||
anns = get_event_news(uid)
|
anns = get_event_news(uid)
|
||||||
render :json => anns.to_json
|
render :json => anns.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
def rssfeed
|
def rssfeed
|
||||||
uid = params[:uid]
|
uid = params[:uid].to_s
|
||||||
@bf = EventNewsFeed.find_by(:uid => uid) rescue nil
|
@bf = EventNewsFeed.find_by(:uid => uid) rescue nil
|
||||||
if !@bf.nil?
|
if !@bf.nil?
|
||||||
tags = @bf.tag_ids
|
tags = @bf.tag_ids
|
||||||
|
|
|
@ -475,7 +475,7 @@ class EventNewsModsController < ApplicationController
|
||||||
end
|
end
|
||||||
if event_news_cache.count == 0 || is_random
|
if event_news_cache.count == 0 || is_random
|
||||||
EventNews.remove_expired_status
|
EventNews.remove_expired_status
|
||||||
uid = OrbitHelper.params[:uid] rescue ""
|
uid = OrbitHelper.params[:uid].to_s rescue ""
|
||||||
event_news_for_locale = EventNews.where(:title.nin => ["",nil], :uid.ne => uid).is_approved_and_show.filter_cats_and_tags(cats,tags)
|
event_news_for_locale = EventNews.where(:title.nin => ["",nil], :uid.ne => uid).is_approved_and_show.filter_cats_and_tags(cats,tags)
|
||||||
if @show_today_data_first
|
if @show_today_data_first
|
||||||
sorted_event_news = event_news_for_locale.can_display_and_sorted_according_today
|
sorted_event_news = event_news_for_locale.can_display_and_sorted_according_today
|
||||||
|
@ -767,7 +767,7 @@ class EventNewsModsController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
params = OrbitHelper.params
|
params = OrbitHelper.params
|
||||||
uid = params[:uid]
|
uid = params[:uid].to_s
|
||||||
if OrbitHelper.is_object_from_feed?(uid)
|
if OrbitHelper.is_object_from_feed?(uid)
|
||||||
show_feed_event_news(uid)
|
show_feed_event_news(uid)
|
||||||
else
|
else
|
||||||
|
|
|
@ -330,7 +330,7 @@ module EventNewsHelper
|
||||||
|
|
||||||
|
|
||||||
if @target_action == "index"
|
if @target_action == "index"
|
||||||
filename = overridehtml.nil? ? params[:layout_type] : overridehtml
|
filename = overridehtml.nil? ? params[:layout_type].to_s.split('/').last : overridehtml
|
||||||
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "#{filename}.html.erb")
|
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "#{filename}.html.erb")
|
||||||
if !File.exists?f
|
if !File.exists?f
|
||||||
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "index.html.erb")
|
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "index.html.erb")
|
||||||
|
|
Loading…
Reference in New Issue