SMF is written to maximise compatibility; it has workaround for super obsolete stuff like IE 4 in it. Chances are encodeURIComponent wasn't 100% supported at some point so they tried to write their own workaround.
Seems to work okay with that line changed to:
Code: javascript
I edited the post Snarky linked, and previewed, and it looked okay in both preview and post...
Seems to work okay with that line changed to:
x[x.length] = textFields[i] + \'=\' + encodeURIComponent(document.forms.postmodify[textFields[i]].value);
I edited the post Snarky linked, and previewed, and it looked okay in both preview and post...