mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
added ability not to change url if we have no rights for reading
This commit is contained in:
parent
f43bb8ed42
commit
044cca53c1
4 changed files with 17 additions and 12 deletions
10
cloudcmd.js
10
cloudcmd.js
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue