/[health_html]/inc/global.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/global.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by ravilov, Tue Sep 25 15:38:04 2001 UTC revision 1.14 by ravilov, Fri Sep 28 23:34:37 2001 UTC
# Line 46  Line 46 
46          }          }
47    
48          function MyEscape($str, $full = true) {          function MyEscape($str, $full = true) {
49                  $allowed = array("", "A", "B", "I", "U", "UL", "OL", "LI", "TABLE", "TR", "TH", "TD", "HR");                  $allowed = array("", "A", "B", "I", "U", "UL", "OL", "LI", "TABLE", "TR", "TH", "TD", "HR", "SUP", "SUB");
50                  $str = preg_replace('/(^\s+|\s+$)/m', '', $str);                  $str = preg_replace('/(^[       ]+|[    ]+$)/m', '', $str);
51                  $str = preg_replace('/(\<\/?\s*(\w+)\\b[^\>]*\>)/e', 'array_search(MyUpper("\2"),'.                  $str = preg_replace('/(\<\/?\s*(\w+)\\b[^\>]*\>)/e', 'array_search(MyUpper("\2"),'.
52                          '\$allowed,false)?"\1":HTMLSpecialChars("\1")', $str);                          '\$allowed,false)?"\1":HTMLSpecialChars("\1")', $str);
53                  $str = preg_replace('/(\<\s*A\b)/i', '\\1 target=_blank class=more', $str);                  $str = preg_replace('/(\<\s*A\b)/i', '\\1 target=_blank class=more', $str);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.26