We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0b7fea commit 3c7895dCopy full SHA for 3c7895d
nosqlmap.py
@@ -296,10 +296,15 @@ def options():
296
297
elif select == "3":
298
uri = raw_input("Enter URI Path (Press enter for no URI): ")
299
- #Ensuring the URI path always starts with / and causes less errors
300
- if uri[0] != "/":
+ #Ensuring the URI path always starts with / and accepts null values
+ if len(uri) == 0:
301
+ uri = "Not Set"
302
+ print "\nURI Not Set." "\n"
303
+ optionSet[2] = False
304
+
305
+ elif uri[0] != "/":
306
uri = "/" + uri
- print "\nURI Path set to " + uri + "\n"
307
+ print "\nURI Path set to " + uri + "\n"
308
optionSet[2] = True
309
310
elif select == "4":
0 commit comments