Skip to content

Commit

Permalink
Merge pull request #69 from Gerti1972/master
Browse files Browse the repository at this point in the history
Allow values for combined parameters. Checks if the value contains "=" and in this case use the complete value as new value even if it contains ","
  • Loading branch information
jens-maus authored Sep 22, 2023
2 parents 6fda76a + b38aa56 commit 87c265f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmlapi/statechange.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ if {[info exists sid] && [check_session $sid]} {
regsub -all {%3C} $new_value {<} new_value
regsub -all {%3E} $new_value {>} new_value
regsub -all {%3F} $new_value {?} new_value
regsub -all {%3D} $new_value {=} new_value
regsub -all {%2C} $new_value {,} new_value

if { [string match "rgb*" $new_value ]} {
if { [string match "rgb*" $new_value ] || [string match "*=*" $new_value ] } {
array set res [rega_script "Write(dom.GetObject($ise_id).State('$new_value'));"]

if {$res(STDOUT) != "null"} {
Expand Down

0 comments on commit 87c265f

Please sign in to comment.