cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1583
Views
0
Helpful
2
Replies

How to compare fields when writting custom filter?

darkw1y
Level 1
Level 1

Hey,

I want to compare fields like this:

if(header('To') != rcpt-to) {

drop();

}

 

But I receive error message saying that 'rcpt-to' is not STRING.


How can I overcome this issue, as I assume bot of these should return string. Or if not, atleast some utility function to cast the response to strings.

Thanks

2 Replies 2

Libin Varghese
Cisco Employee
Cisco Employee

Ability to compare header values is currently being tracked under the below feature request.

 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvb97836/?reffering_site=dumpcr

 

Regards,

Libin

Prab
Level 1
Level 1