hunk.code_window:     if casting:
           errMsg = "possible integer casting "
           errMsg += "detected (e.g. %s=(int)$_REQUEST('%s')) " % (parameter, parameter)
           errMsg += "at the back-end web application"
           logger.error(errMsg)
  
hunk.labels: keep keep replace keep keep keep keep
hunk.after_edit:         errMsg = "possible %scasting " % ("integer " if origValue.isdigit() else "")
  
hunk.file_path: lib/controller/checks.py
hunk.type: replace
file: #!/usr/bin/env python
  
  """
  Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
  See the file 'doc/COPYING' for copying permission
  """
  
  from lib.core.data import kb
  from lib.request.connect import Connect as Request
  
  def getPageTemplate(payload, place):
      retVal = (kb.originalPage, kb.errorIsNone)
  
      if payload and place:
          if (payload, place) not in kb.pageTemplates:
              page, _ = Request.queryPage(payload, place, content=True)
              kb.pageTemplates[(payload, place)] = (page, kb.lastParserStatus is None)
  
          retVal = kb.pageTemplates[(payload, place)]
  
      return retVal
  
  