Skip to content

Commit 3c7895d

Browse files
authored
Update Set App Path Module to Accept Null Values
1 parent c0b7fea commit 3c7895d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

nosqlmap.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,15 @@ def options():
296296

297297
elif select == "3":
298298
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] != "/":
299+
#Ensuring the URI path always starts with / and accepts null values
300+
if len(uri) == 0:
301+
uri = "Not Set"
302+
print "\nURI Not Set." "\n"
303+
optionSet[2] = False
304+
305+
elif uri[0] != "/":
301306
uri = "/" + uri
302-
print "\nURI Path set to " + uri + "\n"
307+
print "\nURI Path set to " + uri + "\n"
303308
optionSet[2] = True
304309

305310
elif select == "4":

0 commit comments

Comments
 (0)