rspec/rules/S1313/php/rule.adoc
2020-06-30 17:16:12 +02:00

24 lines
446 B
Plaintext

include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
----
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket, '8.8.8.8', 23); // Sensitive
----
== Compliant Solution
----
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket, IP_ADDRESS, 23); // Compliant
----
include::../exceptions.adoc[]
include::../see.adoc[]