Diff for phpPlatonLib/Platon/Platon.php between version 1.17 and 1.18
| version 1.17, 2003/01/26 20:26:08 |
version 1.18, 2003/02/04 21:47:39 |
|
|
| $method = strtoupper($method); |
$method = strtoupper($method); |
| if ($method == 'POST') { |
if ($method == 'POST') { |
| if (! is_array($origvars)) { |
if (! is_array($origvars)) { |
| |
$new_origvars = array(); |
| foreach (explode('&', $origvars) as $param) { |
foreach (explode('&', $origvars) as $param) { |
| $parts = explode('=', $param, 2); |
$parts = explode('=', $param, 2); |
| if (! isset($parts[1])) { |
if (! isset($parts[1])) { |
|
|
| if (strlen($parts[0]) <= 0) { |
if (strlen($parts[0]) <= 0) { |
| continue; |
continue; |
| } |
} |
| $origvars[$parts[0]] = $parts[1]; |
$new_origvars[$parts[0]] = $parts[1]; |
| } |
} |
| |
$origvars =& $new_origvars; |
| } |
} |
| foreach ($origvars as $key => $val) { |
foreach ($origvars as $key => $val) { |
| if (strlen($val) <= 0 && $default_value === null) { |
if (strlen($val) <= 0 && $default_value === null) { |
|
|
| .$method, E_USER_ERROR); |
.$method, E_USER_ERROR); |
| } |
} |
| return $ret; |
return $ret; |
| } |
} /* }}} */ |
| |
|
| /** |
/** |
| * Reverse of the standard htmlspecialchars() PHP function. |
* Reverse of the standard htmlspecialchars() PHP function. |
Platon Group <platon@platon.org> http://platon.org/
|
|