File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ void CMUSHclientDoc::MXP_collected_entity (void)
47
47
CString strEntityContents = MXP_GetEntity (m_strMXPstring);
48
48
49
49
if (!strEntityContents.IsEmpty ())
50
- AddToLine (strEntityContents, 0 );
50
+ {
51
+ // if the entity happens to be < & > etc. don't reprocess it
52
+ m_bMXP = false ;
53
+ DisplayMsg (strEntityContents, strEntityContents.GetLength (), 0 );
54
+ m_bMXP = true ;
55
+ }
51
56
52
57
} // end of CMUSHclientDoc::MXP_collected_entity
53
58
@@ -109,7 +114,7 @@ CString strEntityContents;
109
114
iResult *= 10 ;
110
115
iResult += strName [i] - ' 0' ;
111
116
}
112
- if (iResult != 9 && iResult != 10 ) // we will accept tabs and newlines ;)
117
+ if (iResult != 9 && iResult != 10 && iResult != 13 ) // we will accept tabs, newlines and carriage-returns ;)
113
118
if (iResult < 32 || // don't allow nonprintable characters
114
119
iResult > 255 ) // don't allow characters more than 1 byte
115
120
{
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ void CMUSHclientDoc::Phase_MXP_ENTITY (const unsigned char c)
82
82
switch (c)
83
83
{
84
84
case ' ;' :
85
- MXP_collected_entity (); // we have an entity now
86
85
m_phase = NONE;
86
+ MXP_collected_entity (); // we have an entity now
87
87
break ;
88
88
89
89
// shouldn't have a & inside a &
You can’t perform that action at this time.
0 commit comments