Ver Fonte

Reverse previous commit escaping launch_data, lesson_location and suspend_data as they were already filtered by c0dc2ab869fa96528e8a8c6e2d8a0d0cf4e1741c

Yannick Warnier há 10 anos atrás
pai
commit
6786cb33cc
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      main/newscorm/scorm_api.php

+ 3 - 3
main/newscorm/scorm_api.php

@@ -152,11 +152,11 @@ olms.max='<?php echo $oItem->get_max();?>';
 olms.min='<?php echo $oItem->get_min();?>';
 olms.lesson_status='<?php echo $oItem->get_status();?>';
 olms.session_time='<?php echo $oItem->get_scorm_time('js');?>';
-olms.suspend_data = '<?php echo str_replace("'", "\\'", $oItem->get_suspend_data());?>';
-olms.lesson_location = '<?php echo str_replace("'", "\\'", $oItem->get_lesson_location());?>';
+olms.suspend_data = '<?php echo $oItem->get_suspend_data();?>';
+olms.lesson_location = '<?php echo $oItem->get_lesson_location();?>';
 olms.total_time = '<?php echo $oItem->get_scorm_time('js');?>';
 olms.mastery_score = '<?php echo $oItem->get_mastery_score();?>';
-olms.launch_data = '<?php echo str_replace("'", "\\'", $oItem->get_launch_data()); ?>';
+olms.launch_data = '<?php echo $oItem->get_launch_data(); ?>';
 olms.max_time_allowed = '<?php echo $oItem->get_max_time_allowed();?>';
 olms.interactions = new Array(<?php echo $oItem->get_interactions_js_array();?>);
 olms.item_objectives = new Array();