git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5aeb495
)
Updated php-5.x compatibility ($HTTP_SERVER_VARS).
author
short
<>
Sat, 14 May 2005 00:04:45 +0000
(
00:04
+0000)
committer
short
<>
Sat, 14 May 2005 00:04:45 +0000
(
00:04
+0000)
public_html/cgi-bin/postget.php
patch
|
blob
|
history
diff --git
a/public_html/cgi-bin/postget.php
b/public_html/cgi-bin/postget.php
index
1515e4f
..
9e8677f
100644
(file)
--- a/
public_html/cgi-bin/postget.php
+++ b/
public_html/cgi-bin/postget.php
@@
-8,9
+8,9
@@
foreach ($_REQUEST as $key=>$val) {
if (ereg("^_priv_(postget.*)\$",$val,$matched)) {
$permit=array("127.0.0.1"=>1,"192.168.192.1"=>1,"192.168.90.11"=>1,"192.168.90.12"=>1);
foreach ($_REQUEST as $key=>$val) {
if (ereg("^_priv_(postget.*)\$",$val,$matched)) {
$permit=array("127.0.0.1"=>1,"192.168.192.1"=>1,"192.168.90.11"=>1,"192.168.90.12"=>1);
- if (!$permit[$
HTTP_SERVER_VARS
["REMOTE_ADDR"]])
+ if (!$permit[$
_SERVER
["REMOTE_ADDR"]])
print("Forbidden:"
print("Forbidden:"
- ." REMOTE_ADDR=".htmlspecialchars($
HTTP_SERVER_VARS
["REMOTE_ADDR"])
+ ." REMOTE_ADDR=".htmlspecialchars($
_SERVER
["REMOTE_ADDR"])
.",key=".htmlspecialchars($key)
.",val=".htmlspecialchars($val)
."<br />"
.",key=".htmlspecialchars($key)
.",val=".htmlspecialchars($val)
."<br />"