git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d29a218
)
Implemented workaround for clients passing arguments with "&"
author
short
<>
Thu, 21 Mar 2002 21:12:13 +0000
(21:12 +0000)
committer
short
<>
Thu, 21 Mar 2002 21:12:13 +0000
(21:12 +0000)
+function fixampvars()
common.php
patch
|
blob
|
history
diff --git
a/common.php
b/common.php
index
69ffa30
..
11ceb6b
100644
(file)
--- a/
common.php
+++ b/
common.php
@@
-2,6
+2,7
@@
error_reporting(E_ALL);
setlocale(LC_ALL,"cs_CZ.iso-8859-2");
error_reporting(E_ALL);
setlocale(LC_ALL,"cs_CZ.iso-8859-2");
+ fixampvars();
include("config.php");
include("config.php");
@@
-29,6
+30,19
@@
$have_style=!isset($mozilla_major) || $mozilla_major!=4;
$have_css=true; // doesn't hurt anybody AFAIK
$have_style=!isset($mozilla_major) || $mozilla_major!=4;
$have_css=true; // doesn't hurt anybody AFAIK
+function fixampvars()
+{
+ $ars=array("HTTP_GET_VARS","HTTP_POST_VARS");
+ foreach ($ars as $ar) {
+ foreach ($GLOBALS[$ar] as $key=>$val) {
+ if (substr($key,0,4)!="amp;")
+ continue;
+ unset($GLOBALS[$ar][$key]);
+ $GLOBALS[$ar][substr($key,4)]=$val;
+ }
+ }
+}
+
function addpercents($url)
{
$r=$c="";
function addpercents($url)
{
$r=$c="";