IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2021, 4:44:03 PM (5 years ago)
Author:
eugene
Message:

disallow unrestricted queries and add -all option to definebyquery commands and others which would generate very long results if allowed: camtool, chiptool, difftool, dqstatstool, faketool, pubtool, warptool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pubtool.c

    r30769 r41549  
    324324    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    325325    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     326    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
    326327
    327328    psString query = pxDataGet("pubtool_pending.sql");
     
    337338        psStringAppend(&whereClause, "\nAND %s", clause);
    338339        psFree(clause);
     340    } else {
     341      if (!all) {
     342        psError(PXTOOLS_ERR_SYS, false, "unrestricted query not allowed (try -all)");
     343        return false;
     344      }
    339345    }
    340346    psFree(where);
Note: See TracChangeset for help on using the changeset viewer.