Skip to content

Commit

Permalink
Merge pull request #86 from gabu-b/master
Browse files Browse the repository at this point in the history
Update 'Set App Path' Module to Accept Null Values
  • Loading branch information
codingo authored May 29, 2019
2 parents c0b7fea + 3c7895d commit 0a281b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nosqlmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,15 @@ def options():

elif select == "3":
uri = raw_input("Enter URI Path (Press enter for no URI): ")
#Ensuring the URI path always starts with / and causes less errors
if uri[0] != "/":
#Ensuring the URI path always starts with / and accepts null values
if len(uri) == 0:
uri = "Not Set"
print "\nURI Not Set." "\n"
optionSet[2] = False

elif uri[0] != "/":
uri = "/" + uri
print "\nURI Path set to " + uri + "\n"
print "\nURI Path set to " + uri + "\n"
optionSet[2] = True

elif select == "4":
Expand Down

0 comments on commit 0a281b3

Please sign in to comment.