Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Apr 29, 2024
1 parent acde115 commit a3514e8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ldapconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,10 @@ def parseArgs():

if _select_index != -1:
_query = " ".join(arguments[0:_select_index]).strip()
_attrs = " ".join(arguments[_select_index + 1:]).replace(","," ").split(" ")
if len(arguments[_select_index + 1:]) == 0:
_attrs = []
else:
_attrs = " ".join(arguments[_select_index + 1:]).replace(","," ").split(" ")
else:
_query = " ".join(arguments[0:]).strip()
_attrs = ["*"]
Expand All @@ -767,7 +770,10 @@ def parseArgs():
_select_index = -1

if _select_index != -1:
_attrs = " ".join(arguments[_select_index + 1:]).replace(","," ").split(" ")
if len(arguments[_select_index + 1:]) == 0:
_attrs = []
else:
_attrs = " ".join(arguments[_select_index + 1:]).replace(","," ").split(" ")
else:
_attrs = ["*"]

Expand Down

0 comments on commit a3514e8

Please sign in to comment.