Project

General

Profile

« Previous | Next » 

Revision 1801

Added by Dietmar about 12 years ago

! upgrade-script: update if filesRemove or remove dirs failed
! update methode StripCodeFromText, add remove ,
! security fixes in form modul with StripCodeFromText

View differences:

upgrade-script.php
66 66
			'[ADMIN]/themes/',
67 67
		 );
68 68

  
69
if(version_compare(WB_REVISION, '1791', '<'))
69
if(version_compare(WB_REVISION, VERSION, '<='))
70 70
{
71 71
    $filesRemove['0'] = array(
72 72

  
......
857 857
				// try to unlink file
858 858
				if(!unlink(WB_PATH.$file)) {
859 859
					// save in err-list, if failed
860
					$msg .= $file.'<br />';
861
				} else {
862
					$msg .= $file.'<br />';
863
    			}
860
				}
864 861
			}
862
            if( is_readable(WB_PATH.'/'.$file) ) {
863
                $msg .= $file.'<br />';
864
            }
865 865
    	}
866 866

  
867 867
		if($msg != '')
......
911 911
			// try to delete dir
912 912
				if(!is_writable( $dir ) || !rm_full_dir($dir)) {
913 913
				// save in err-list, if failed
914
					$msg .= str_replace(WB_PATH,'',$dir).'<br />';
914
                    if( is_readable(WB_PATH.'/'.$file) ) {
915
                    	$msg .= str_replace(WB_PATH,'',$dir).'<br />';
916
                    }
915 917
				}
916 918
			}
917 919
		}
......
939 941
     * upgrade modules if newer version is available
940 942
     * $aModuleList list of proofed modules
941 943
     */
942
    $sModuleList = 'news,wysiwyg,form,any';
944
    $sModuleList = 'news,wysiwyg,form';
943 945
    $aModuleList = explode(',', (defined('MODULES_UPGRADE_LIST') ? MODULES_UPGRADE_LIST : $sModuleList));
944 946
    echo '<h3>Step '.(++$stepID).': Upgrade proofed modules</h3>';
945 947
//	$aModuleList = array('news');

Also available in: Unified diff