|
[
Permalink
| « Hide
]
Anthony Borrow added a comment - 01/Jan/09 06:51 AM
Ralf - I went to the link you provided but did not find two <head> tags and nothing related to the MRBS other than the links. I'm attaching a screen shot. It is not clear to me what you are describing as being the problem and why this may be a security issue. Could you provide me step by step instructions where I could see the problem? Peace - Anthony
here is screen shot along with source code I found at given link which only has on <head> tag
Hi Anthony,
if you go up to my page and then to the current version of MRBS then you will see the double html header. If you go to the older version you will see that everything is okay. additional I added a link to the new version of MRBS 1.4 that runs without Moodle. Ralf Ralf - Yep, I see what you mean now. Good catch! Could you test this patch and see if that resolves the issue? If not, could you upload a patch file. The issue is in the print_header_mrbs function in the functions.php file. I began using the Moodle print_header function and forgot that mrbs was doing some of its own function definitions. I've not checked to see if there is some duplication that might be avoided. If there is please feel free to make suggestions. Peace - Anthony
Yes,
after I deleted the 3 lines from the file moodle/blocks/mrbs/web/functions.php everything seems to be okay with the html header of the MRBS page. Anthony,
sorry but I should look better next time .... yes, it's correct that there is only one head and only one body .... But there is some overlapping code that should better stay in the header of the html page. Yes, it's correct that you can have javascipts in your body code but it would be better to move them into the header. And I found some code that should always stay in the header ... see next three lines <LINK REL="stylesheet" href="mrbs.css" type="text/css"> I hope that it would be easy to repair the header code. Regards, Ralf
<body class="blocks-mrbs-web course-1 dir-ltr lang-de_utf8" id="blocks-mrbs-web-day"> <div id="page">
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin /* Script inspired by "True Date Selector" Tested with Windows IE 6.0 */ function daysInFebruary (year){ //function for returning how many days there are in a month including leap years //function to change the available days in a months if (DaysObject.selectedIndex && DaysObject.options) { // The DOM2 standard way // alert("The DOM2 standard way"); var DaySelIdx = DaysObject.selectedIndex; var Month = parseInt(MonthObject.options[MonthObject.selectedIndex].value); var Year = parseInt(YearObject.options[YearObject.selectedIndex].value); }else if (DaysObject.selectedIndex && DaysObject[DaysObject.selectedIndex]) { // The legacy MRBS way // alert("The legacy MRBS way"); var DaySelIdx = DaysObject.selectedIndex; var Month = parseInt(MonthObject[MonthObject.selectedIndex].value); var Year = parseInt(YearObject[YearObject.selectedIndex].value); }else if (DaysObject.value) { // Opera 6 stores the selectedIndex in property 'value'. // alert("The Opera 6 way"); var DaySelIdx = parseInt(DaysObject.value); var Month = parseInt(MonthObject.options[MonthObject.value].value); var Year = parseInt(YearObject.options[YearObject.value].value); }// alert("Day="(DaySelIdx+1)" Month="Month" Year="+Year); var DaysForThisSelection = DaysInMonth(Month, Year); } } // End --> No problem - I am wondering if we would be better off removing the MRBS header functions. I'll have to look more carefully at this. By using the Moodle header call it automatically closes itself so we do not have the option to just move the </head> tag. This will have to wait unti I get back from Nepal. Peace - Anthony
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||