Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

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
Line 202  class Platon
Line 202  class Platon
         $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])) {
Line 210  class Platon
Line 211  class Platon
                     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) {
Line 246  class Platon
Line 248  class Platon
                     .$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.

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top