Checks for obsolete/deprecated options
(args)
| 4834 | return retVal |
| 4835 | |
| 4836 | def checkOldOptions(args): |
| 4837 | """ |
| 4838 | Checks for obsolete/deprecated options |
| 4839 | """ |
| 4840 | |
| 4841 | for _ in args: |
| 4842 | _ = _.split('=')[0].strip() |
| 4843 | if _ in OBSOLETE_OPTIONS: |
| 4844 | errMsg = "switch/option '%s' is obsolete" % _ |
| 4845 | if OBSOLETE_OPTIONS[_]: |
| 4846 | errMsg += " (hint: %s)" % OBSOLETE_OPTIONS[_] |
| 4847 | raise SqlmapSyntaxException(errMsg) |
| 4848 | elif _ in DEPRECATED_OPTIONS: |
| 4849 | warnMsg = "switch/option '%s' is deprecated" % _ |
| 4850 | if DEPRECATED_OPTIONS[_]: |
| 4851 | warnMsg += " (hint: %s)" % DEPRECATED_OPTIONS[_] |
| 4852 | logger.warning(warnMsg) |
| 4853 | |
| 4854 | def checkSystemEncoding(): |
| 4855 | """ |
no test coverage detected
searching dependent graphs…