Explorar o código

Bug #573 - Desactivation of IE proprietary commenting tags inside the text before loading it on the online editor. This fix has been proposed by Hubert Borderiou, see http://support.chamilo.org/issues/573

Ivan Tcholakov %!s(int64=15) %!d(string=hai) anos
pai
achega
9f3846d30b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      main/document/edit_document.php

+ 3 - 1
main/document/edit_document.php

@@ -656,7 +656,9 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_
 
 	$read_only_flag=$_POST['readonly'];
 
-	$defaults['texte'] = $texte;
+	// Desactivation of IE proprietary commenting tags inside the text before loading it on the online editor.
+	// This fix has been proposed by Hubert Borderiou, see Bug #573, http://support.chamilo.org/issues/573
+	$defaults['texte'] = str_replace('<!--[', '<!-- [', $texte);
 
 	//if($extension == 'htm' || $extension == 'html')
 	// HotPotatoes tests are html files, but they should not be edited in order their functionality to be preserved.