Skip to content

Commit

Permalink
sanitize_val retains dash
Browse files Browse the repository at this point in the history
  • Loading branch information
andylytical committed Jan 14, 2024
1 parent 78bf5c3 commit cd48377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions jiracmdline/libjira.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def jira_login( token=None, username=None, passwd=None ):
else:
logr.debug( f'Login using usr/pwd from .netrc' )
params[ 'basic_auth' ] = ( login, pwd )
raw_connection = None
try:
raw_connection = jira.JIRA( **params )
except jira.exceptions.JIRAError as e:
Expand Down
2 changes: 1 addition & 1 deletion jiracmdline/libweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def sanitize_key( key ):

def sanitize_val( val ):
temp = re.sub( ',', ' ', val )
return re.sub( '[^\r\n a-zA-Z0-9_()-+/]', '', temp )
return re.sub( '[^\r\n a-zA-Z0-9_()+/-]', '', temp )


def sanitize_dict( dirty ):
Expand Down

0 comments on commit cd48377

Please sign in to comment.