Fix determination of root directory when config parameter includes slashes
This commit is contained in:
parent
af97e9f6a6
commit
62c5adc459
File diff suppressed because one or more lines are too long
|
@ -1948,7 +1948,7 @@ MathJax.Hub.Startup = {
|
||||||
if (KV) {STARTUP.params[unescape(KV[1])] = unescape(KV[2])}
|
if (KV) {STARTUP.params[unescape(KV[1])] = unescape(KV[2])}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*$/,'');
|
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user