Fix determination of root directory when config parameter includes slashes

This commit is contained in:
Davide P. Cervone 2011-03-06 15:16:36 -05:00
parent af97e9f6a6
commit 62c5adc459
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;
} }
} }