Show
Ignore:
Timestamp:
06/12/06 18:33:33 (3 years ago)
Author:
spetersen
Message:

Update PostgreSQL branch to SVN change 1484.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/postgresql/extlib/kses.php

    r392 r1491  
    241241      case 2: # attribute value, a URL after href= for instance 
    242242 
    243         if (preg_match('/^"([^"]*)"(\s+|$|\/)/', $attr, $match)) 
     243        if (preg_match('/^"([^"]*)"(\s+|$|\/)?/', $attr, $match)) 
    244244         # "value" 
    245245        { 
     
    252252                         'vless' => 'n'); 
    253253          $working = 1; $mode = 0; 
    254           $attr = preg_replace('/^"[^"]*"(\s+|$|\/)/', '', $attr); 
     254          $attr = preg_replace('/^"[^"]*"(\s+|$|\/)?/', '', $attr); 
    255255          break; 
    256256        } 
    257257 
    258         if (preg_match("/^'([^']*)'(\s+|$|\/)/", $attr, $match)) 
     258        if (preg_match("/^'([^']*)'(\s+|$|\/)?/", $attr, $match)) 
    259259         # 'value' 
    260260        { 
     
    267267                         'vless' => 'n'); 
    268268          $working = 1; $mode = 0; 
    269           $attr = preg_replace("/^'[^']*'(\s+|$)/", '', $attr); 
     269          $attr = preg_replace("/^'[^']*'(\s+|$)?/", '', $attr); 
    270270          break; 
    271271        }