/[gnuheter]/gnuheter/mainfile.php
ViewVC logotype

Diff of /gnuheter/mainfile.php

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

revision 1.32 by metaur, Mon Dec 2 23:03:07 2002 UTC revision 1.33 by metaur, Wed Dec 4 23:14:20 2002 UTC
# Line 136  function urlWithProtocol($url) { Line 136  function urlWithProtocol($url) {
136          if ($url == 'http://')          if ($url == 'http://')
137                  $url = '';                  $url = '';
138    
139          $url = preg_replace('/(\s|"|\')/', '', $url);          $url = preg_replace('/(\s|"|\'|\\\\)/', '', $url);
140    
141          return $url;          return $url;
142  }  }
# Line 300  function new_check_html_attr($element, $ Line 300  function new_check_html_attr($element, $
300    
301              case 1: # lika med eller bara tomt ("selected")              case 1: # lika med eller bara tomt ("selected")
302    
303                  if (preg_match('/^\\s*=\\s*/', $attr)) # lika med                  if (preg_match('/^\s*=\s*/', $attr)) # lika med
304                  {                  {
305                      $working = 1; $mode = 2;                      $working = 1; $mode = 2;
306                      $attr = preg_replace('/^\\s*=\\s*/', '', $attr);                      $attr = preg_replace('/^\s*=\s*/', '', $attr);
307                      break;                      break;
308                  }                  }
309    
310                  if (preg_match('/^\\s+/', $attr)) # tomt                  if (preg_match('/^\s+/', $attr)) # tomt
311                  {                  {
312                      $working = 1; $mode = 0;                      $working = 1; $mode = 0;
313                      $attrarr[] = array                      $attrarr[] = array
314                                    ('name'  => $attrname,                                    ('name'  => $attrname,
315                                     'whole' => $attrname);                                     'whole' => $attrname);
316                      $attr = preg_replace('/^\\s+/', '', $attr);                      $attr = preg_replace('/^\s+/', '', $attr);
317                  }                  }
318    
319                  break;                  break;

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26