mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fixing the Tester plugin output so that Mozilla does not confuse text/plain with text/html -- not part of the build
This commit is contained in:
parent
b8e8d0be24
commit
0fa45e0f2c
@ -105,19 +105,14 @@ BOOL CLogger::onNPP_DestroyStream(NPStream * npStream)
|
||||
|
||||
static void FixUpOutputString(char * aString)
|
||||
{
|
||||
// search for "<html" substring in both lower and
|
||||
// upper cases and replace with "<@tml".
|
||||
// replace angle brackets with rect brackets
|
||||
char * p = aString;
|
||||
while(p = strstr(p, "<html")) {
|
||||
p++;
|
||||
*p = '@';
|
||||
}
|
||||
while(p = strstr(p, "<"))
|
||||
*p = '[';
|
||||
|
||||
p = aString;
|
||||
while(p = strstr(p, "<HTML")) {
|
||||
p++;
|
||||
*p = '@';
|
||||
}
|
||||
while(p = strstr(p, ">"))
|
||||
*p = ']';
|
||||
}
|
||||
|
||||
BOOL CLogger::appendToLog(NPAPI_Action action, DWORD dwTickEnter, DWORD dwTickReturn,
|
||||
|
Loading…
Reference in New Issue
Block a user