Arg... $scripturl is parsed in a special way by JavaScriptEscape

Signed-off-by: emanuele <emanuele45@gmail.com>
Wrong conditions in splitting topic functions

Signed-off-by: emanuele <emanuele45@gmail.com>