Issue Feature Closed

#21169add fullQuoteStr to stdWrap

Martin Holtz 10/01/09, 14:51 updated 07/02/10, 11:16

Description

(afaik) at the moment you need a userFunc to sanitze a value to be sql-injection save

  1. Example: sql-injection possible
    1 = CONTENT
    1.table = tt_content
    1.select {
    pidInList = this
    orderBy = sorting
    andWhere.cObject = TEXT
    andWhere.data = GPvar:parameter
    andWhere.wrap = title = ‘|‘
    }
  1. how it could be:
    1 = CONTENT
    1.table = tt_content
    1.select {
    pidInList = this
    orderBy = sorting
    andWhere.cObject = TEXT
    andWhere.data = GPvar:parameter # define table name for fullQuoteStr
    andWhere.fullQuoteStr = tt_content
    andWhere.wrap = title = ‘|‘
    }
    (issue imported from #M12094)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.