Quote:
Originally Posted by supersonic80
This is because of "invalid" topic of some model.
Dirty fix is to find the lines
Code:
var topic_dec = decodeURIComponent(m[14]);
var tags_dec = decodeURIComponent(m[21]);
and replace by
Code:
var topic_dec = '';
try {
topic_dec = decodeURIComponent(m[14]);
} catch (err) {
topic_dec = m[14];
}
var tags_dec = '';
try {
tags_dec = decodeURIComponent(m[21]);
} catch (err) {
tags_dec = m[21];
}
|
Yep, if decodeURIComponent is used on a string with some characters not allowed on a url, it will crash the program without the use of try-catch combo.