Skip to content

Commit e9d0506

Browse files
authored
Merge pull request #64 from ProDigySML/master
Fix for URLs concatenating without the "/" at the end
2 parents 9cd9311 + 44a22f5 commit e9d0506

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)