added ability not to change url if we have no rights for reading

This commit is contained in:
coderaiser 2013-02-19 09:19:09 -05:00
parent f43bb8ed42
commit 044cca53c1
4 changed files with 17 additions and 12 deletions

View file

@ -192,16 +192,12 @@
lRet = main.sendFile( pParams );
}
else if( Util.isContainStr(p.name, FS) || Util.strCmp( p.name, '/') ){
var lQuery = main.getQuery(p.request);
var lQuery = main.getQuery(p.request),
lName = Minify.allowed.html ?
Minify.getName(INDEX) : INDEX;
if( !lQuery )
p.request.url += '?html';
else if(lQuery === '?download')
lQuery += '&&html';
var lName = Minify.allowed.html ?
Minify.getName(INDEX) : INDEX;
lRet = main.commander.sendContent({
request : p.request,