| skipped 24 lines |
25 | 25 | | term = data.decode().strip().split(" ") |
26 | 26 | | term[-1] = term[-1][:3] #cut down on the last item which should be the version number |
27 | 27 | | for splitTerms in term: |
28 | | - | if not re.search("^[\w\s:\-\+\.~_]+$", term): |
29 | | - | print("[-] recieved search term with invalid characters: {}".format(term)) |
| 28 | + | if not re.search("^[\w\s:\-\+\.~_]+$", splitTerms): |
| 29 | + | print("[-] recieved search term with invalid characters: {}".format(splitTerms)) |
30 | 30 | | break #bad term break so we don't search it |
31 | 31 | | else: |
32 | 32 | | print('[ ] Searching for: ' + term) |
| skipped 43 lines |