Changeset 208

Show
Ignore:
Timestamp:
05/08/06 12:53:28 (2 years ago)
Author:
bart
Message:

Make the disassembler do openbasedir checks before showing a file, this fixes bug #59

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r207 r208  
     12006-05-08  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Make the disassembler do openbasedir checks before showing a file,  
     4          this fixes bug #59 
     5 
    162006-05-07  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    27 
  • eaccelerator/trunk/ea_dasm.c

    r207 r208  
    555555    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &file, &file_len) == FAILURE) 
    556556                return; 
     557 
     558        if (php_check_open_basedir(file TSRMLS_CC)) { 
     559                RETURN_NULL(); 
     560        } 
    557561     
    558562    p = get_cache_entry(file);