Changeset 602

Show
Ignore:
Timestamp:
10/15/06 16:36:12 (2 years ago)
Author:
Rickard
Message:

Implemented workaround for zend_hash_del_key_or_index hole in PHP <4.4.3 and <5.1.4 and fixed accompanying SQL injection in search.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/upload/include/functions.php

    r587 r602  
    10491049        { 
    10501050                if (!in_array($k, $no_unset) && isset($GLOBALS[$k])) 
     1051                { 
    10511052                        unset($GLOBALS[$k]); 
     1053                        unset($GLOBALS[$k]);    // Double unset to circumvent the zend_hash_del_key_or_index hole in PHP <4.4.3 and <5.1.4 
     1054                } 
    10521055        } 
    10531056} 
  • trunk/upload/search.php

    r599 r602  
    171171                                $word_count = 0; 
    172172                                $match_type = 'and'; 
     173                                $result_list = array(); 
    173174                                @reset($keywords_array); 
    174175                                while (list(, $cur_word) = @each($keywords_array))