Fixed security issue for get_gantt_data method #2280

Review ID: 6783002