Skip to content

Commit

Permalink
fix ycp killing bug with changing \r with space
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 26, 2015
1 parent cb9d1dd commit 25faa5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/multipath/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def rm_quotes(value)
str_end = Ops.subtract(str_len, 1)
while Ops.less_than(str_start, str_len)
cur_char = Builtins.substring(value, str_start, 1)
if cur_char == " " || cur_char == "\t" || cur_char == " " ||
if cur_char == " " || cur_char == "\t" || cur_char == "\r" ||
cur_char == "\n" ||
cur_char == "\""
str_start = Ops.add(str_start, 1)
Expand All @@ -697,7 +697,7 @@ def rm_quotes(value)

while Ops.greater_than(str_end, str_start)
cur_char = Builtins.substring(value, str_end, 1)
if cur_char == " " || cur_char == "\t" || cur_char == " " ||
if cur_char == " " || cur_char == "\t" || cur_char == "\r" ||
cur_char == "\n" ||
cur_char == "\""
str_end = Ops.subtract(str_end, 1)
Expand Down

0 comments on commit 25faa5f

Please sign in to comment.