MDL-51524 libraries: Update to latest version of html2text
We were previously using an ancient version of html2text from RoundCube with many customisations. This patchset moves to the version included in the latest version of HTML2Text, and wraps the library in a moodle-provided class. This moves all previous hacks away from that class. Unfortunately, two hacks still remain - two of the functions in the RoundCube class are private, and must be modified to protected in order to use the class effectively.
This commit is contained in:
@@ -164,14 +164,15 @@ have been fixed <strong><a href="http://third.url/view.php">last week</a></stron
|
||||
'<br /> int i = 0;<br /> while (in_string[i] != \'\0\') {<br /> in_string[i] = \'X\';<br /> i++;<br /> }<br />'.
|
||||
'}</span></pre>What would happen if a non-terminated string were input to this function?<br /><br />';
|
||||
|
||||
// Note, the spaces in the <pre> section are Unicode NBSPs - they may not be displayed in your editor.
|
||||
$strconv = 'Consider the following function:
|
||||
|
||||
void FillMeUp(char* in_string) {
|
||||
int i = 0;
|
||||
while (in_string[i] != \'\0\') {
|
||||
in_string[i] = \'X\';
|
||||
i++;
|
||||
}
|
||||
void FillMeUp(char* in_string) {
|
||||
int i = 0;
|
||||
while (in_string[i] != \'\0\') {
|
||||
in_string[i] = \'X\';
|
||||
i++;
|
||||
}
|
||||
}
|
||||
What would happen if a non-terminated string were input to this function?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user