Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0a281b3

Browse files
authored
Merge pull request #86 from gabu-b/master
Update 'Set App Path' Module to Accept Null Values
2 parents c0b7fea + 3c7895d commit 0a281b3

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)

AltStyle によって変換されたページ (->オリジナル) /