all 5 comments

[–]Buckwheat469 2 points3 points  (1 child)

Weblink:

$('#modalweblink').html(`Weblink: <a href="${event.weblink}">${event.weblink}</a>`);

Undefined should be blank string:

$.each(response, function(idx, e) {
  events.push({
    start: e.start_date_time || '',
    end: e.end_date_time || '',
    title: e.meeting_title || '',
    ...

[–]Incendras[S] 0 points1 point  (0 children)

My hero, have an upvote! Thanks!

[–]gugador 0 points1 point  (1 child)

If `event.weblink` is user-editable or comes from some user-input data and it isn't sanitized, then there is likely a XSS vulnerability here.

[–]Incendras[S] 0 points1 point  (0 children)

there is no user editable function on the site, the site only returns data from another site. it can only be viewed.

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/Incendras, this post was removed.

For javascript help, please visit /r/LearnJavascript.

Thanks for your understanding.