Line Sensor Hookup question

I modified a pwm cable a bit by removing the middle pin of the male connector, and sodering the other two to corresponding wires of the line sensor. I just want to make sure that this is legal.

as long as it plugs into the RC and not a spike or a victor! :smiley: