From 4336179cd65d0e96dd2f2bb7355939f4144f2330 Mon Sep 17 00:00:00 2001
From: scyrma <scyrma>
Date: Wed, 11 Jun 2008 08:27:13 +0000
Subject: [PATCH] MDL-14741: Fix to prevent problems when using the htmledit on
 a https-enabled site

---
 .../jscripts/tiny_mce/plugins/moodleimage/insert_image.php  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodleimage/insert_image.php b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodleimage/insert_image.php
index bf1e0a9e40..d1f85e18d9 100644
--- a/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodleimage/insert_image.php
+++ b/lib/editor/tinymce/jscripts/tiny_mce/plugins/moodleimage/insert_image.php
@@ -218,7 +218,7 @@ form { margin-bottom: 0px; margin-top: 0px; }
       <td width="55%" valign="top"><?php
           print_string("filebrowser","editor");
           echo "<br />";
-          echo "<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"{$CFG->wwwroot}/lib/editor/tinymce/coursefiles.php?usecheckboxes=1&id=$id\" style=\"width: 100%; height: 200px;\"></iframe>";
+          echo "<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"{$CFG->httpswwwroot}/lib/editor/tinymce/coursefiles.php?usecheckboxes=1&id=$id\" style=\"width: 100%; height: 200px;\"></iframe>";
       ?>
       </td>
       <td width="45%" valign="top"><?php print_string("preview","editor");?>:<br />
@@ -265,7 +265,7 @@ form { margin-bottom: 0px; margin-top: 0px; }
     </tr>
     <tr>
       <td height="22">
-          <form id="cfolder" action="<?php echo $CFG->wwwroot;?>/lib/editor/tinymce/coursefiles.php" method="post" target="ibrowser">
+          <form id="cfolder" action="<?php echo $CFG->httpswwwroot;?>/lib/editor/tinymce/coursefiles.php" method="post" target="ibrowser">
           <input type="hidden" name="id" value="<?php print($id);?>" />
           <input type="hidden" name="wdir" value="" />
           <input type="hidden" name="action" value="mkdir" />
@@ -276,7 +276,7 @@ form { margin-bottom: 0px; margin-top: 0px; }
           
           </form>
           <div class="space"></div>
-          <form action="<?php echo $CFG->wwwroot;?>/lib/editor/tinymce/coursefiles.php?id=<?php print($id);?>" method="post" enctype="multipart/form-data" target="ibrowser" id="uploader">
+          <form action="<?php echo $CFG->httpswwwroot;?>/lib/editor/tinymce/coursefiles.php?id=<?php print($id);?>" method="post" enctype="multipart/form-data" target="ibrowser" id="uploader">
           <input type="hidden" name="MAX_FILE_SIZE" value="<?php print($upload_max_filesize);?>" />
           <input type="hidden" name="id" VALUE="<?php print($id);?>" />
           <input type="hidden" name="wdir" value="" />
-- 
2.39.5