Skip to content

Commit

Permalink
escape $ip in source
Browse files Browse the repository at this point in the history
  • Loading branch information
BisLinks committed Aug 1, 2017
1 parent 3a8160d commit b678321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ip.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $source = qq{
<li>use warnings;</li>
<li>my \$ip = \$ENV{'REMOTE_ADDR'} or "";</li>
<li>print "Content-type: text/javascript \n\n</li>
<li>print qq{ var user_ip = "$ip"};</li>
<li>print qq{ var user_ip = "\$ip"};</li>
</ol>
};

Expand Down

0 comments on commit b678321

Please sign in to comment.