зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b8e8d0be24
Коммит
0fa45e0f2c
|
@ -105,19 +105,14 @@ BOOL CLogger::onNPP_DestroyStream(NPStream * npStream)
|
||||||
|
|
||||||
static void FixUpOutputString(char * aString)
|
static void FixUpOutputString(char * aString)
|
||||||
{
|
{
|
||||||
// search for "<html" substring in both lower and
|
// replace angle brackets with rect brackets
|
||||||
// upper cases and replace with "<@tml".
|
|
||||||
char * p = aString;
|
char * p = aString;
|
||||||
while(p = strstr(p, "<html")) {
|
while(p = strstr(p, "<"))
|
||||||
p++;
|
*p = '[';
|
||||||
*p = '@';
|
|
||||||
}
|
|
||||||
|
|
||||||
p = aString;
|
p = aString;
|
||||||
while(p = strstr(p, "<HTML")) {
|
while(p = strstr(p, ">"))
|
||||||
p++;
|
*p = ']';
|
||||||
*p = '@';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CLogger::appendToLog(NPAPI_Action action, DWORD dwTickEnter, DWORD dwTickReturn,
|
BOOL CLogger::appendToLog(NPAPI_Action action, DWORD dwTickEnter, DWORD dwTickReturn,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче