V
vertigo
Hello
I have a place in code:
if ($_ =~ /$myvariable/){....}
the problem is that $myvariable is supplied by the user and malicius user
can give me binary code or code with special characters.
How can i treat all characters in $myvariable as strings ?
(when special variables are provided my program fails like this:
Unmatched ) in regex; marked by <-- HERE in m/ GET /?showimage=') <-- HERE
%20UNION%20SELECT%20'pixelpost_15rc1.nasl-1196815102.jpg'%20as%20id%2c%201625282529%20as%20headline%2c%20820629856%20as%20datetime%2c%201781748684%20as%20body%2c%201300225929%20as%20category%2c%201242744851%20as%20image/*
HTTP/1.1/ at /root/skrypty/raportweb_h1.pl line 20, <FILEALL> line 1.
)
Thanx
-
I have a place in code:
if ($_ =~ /$myvariable/){....}
the problem is that $myvariable is supplied by the user and malicius user
can give me binary code or code with special characters.
How can i treat all characters in $myvariable as strings ?
(when special variables are provided my program fails like this:
Unmatched ) in regex; marked by <-- HERE in m/ GET /?showimage=') <-- HERE
%20UNION%20SELECT%20'pixelpost_15rc1.nasl-1196815102.jpg'%20as%20id%2c%201625282529%20as%20headline%2c%20820629856%20as%20datetime%2c%201781748684%20as%20body%2c%201300225929%20as%20category%2c%201242744851%20as%20image/*
HTTP/1.1/ at /root/skrypty/raportweb_h1.pl line 20, <FILEALL> line 1.
)
Thanx
-