Skip to content

Commit 44a22f5

Browse files
author
ProDigySML
committed
Added in a patch for URLs not working when they do not start with a /
1 parent 9cd9311 commit 44a22f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nosqlmap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ def options():
247247

248248
elif select == "3":
249249
uri = raw_input("Enter URI Path (Press enter for no URI): ")
250+
#Ensuring the URI path always starts with / and causes less errors
251+
if uri[0] != "/":
252+
uri = "/" + uri
250253
print "\nURI Path set to " + uri + "\n"
251254
optionSet[2] = True
252255

0 commit comments

Comments
 (0)