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

Diff for Metafox/lib/Platon.php between version 1.5 and 1.6

version 1.5, 2006/07/08 20:05:34 version 1.6, 2007/04/29 13:20:07
Line 24 
Line 24 
  * @access      public   * @access      public
  */   */
   
 /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.33 2005/11/07 23:21:17 nepto Exp $ */  /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.38 2007-04-29 13:19:15 nepto Exp $ */
   
 class Platon  class Platon
 {  {
Line 346  class Platon
Line 346  class Platon
         $str = preg_replace('/&lt;/i',   '<',  $str);          $str = preg_replace('/&lt;/i',   '<',  $str);
         $str = preg_replace('/&quot;/i', '\'', $str);          $str = preg_replace('/&quot;/i', '\'', $str);
         $str = preg_replace('/&amp;/i',  '&',  $str);          $str = preg_replace('/&amp;/i',  '&',  $str);
           // do also reverse of Platon::htmlspecialchars2()
           $str = preg_replace('/&nbsp;/i',  ' ',  $str);
         return $str;          return $str;
     } /* }}} */      } /* }}} */
   
Line 647  class Platon
Line 649  class Platon
             case 'url':              case 'url':
                 // escape every character into hex                  // escape every character into hex
                 for ($x = 0; $x < strlen($email); $x++) {                  for ($x = 0; $x < strlen($email); $x++) {
                     $ret .= '%' . bin2hex($email[$x]);                      if ($email[$x] == '@') {
                           $ret .= '@'; // Opera browser hack
                       } else {
                           $ret .= '%' . bin2hex($email[$x]);
                       }
                 }                  }
                 if ($mode == 'url') {                  if ($mode == 'url') {
                     break;                      break;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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