Changeset 163

Show
Ignore:
Timestamp:
01/09/08 11:17:19 (5 years ago)
Author:
d0nut
Message:

release of 0.2.1 - unvalid pages without content-types are ignored

Location:
trackback
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trackback/files/lib/util/TrackbackUtil.class.php

    r154 r163  
    206206 
    207207                if ( !isset($host) ) // Not an URL. This should never happen. 
    208                 return false; 
     208                return array(); 
    209209 
    210210                $path  = ( !isset($path) ) ? '/'          : $path; 
     
    215215                $fp = @fsockopen($host, $port, $errno, $errstr, 2); 
    216216                if ( !$fp ) // Couldn't open a connection to $host 
    217                         return false; 
     217                        return array(); 
    218218 
    219219                // Send the GET request 
     
    241241                } 
    242242 
    243                 if ( preg_match('#(image|audio|video|model)/#is', $content_type) ) // Not an (x)html, sgml, or xml page, no use going further 
    244                         return false; 
     243                if ( !isset($content_type) || preg_match('#(image|audio|video|model)/#is', $content_type) ) // Not an (x)html, sgml, or xml page, no use going further 
     244                        return array(); 
    245245 
    246246                while ( !feof($fp) ) { 
  • trackback/package.xml

    r154 r163  
    66                <packagedescription>Allows sending and receiving from track- and pingbacks.</packagedescription> 
    77                <packagedescription languagecode="de">Das Plugin erlaubt das Senden und Empfangen von Track- und Pingbacks.</packagedescription> 
    8                 <version>0.2.0</version> 
     8                <version>0.2.1</version> 
    99                <date>DATE</date> 
    1010                <plugin>com.woltlab.wbb</plugin> 
     
    1919                <requiredpackage minversion="1.0.0">com.woltlab.wcf</requiredpackage> 
    2020                <requiredpackage minversion="3.0.0">com.woltlab.wbb</requiredpackage> 
    21                 <requiredpackage file="requirements/de.easy-coding.wcf.data.page.publicseorewriter.tar.gz" minversion="1.1.4">de.easy-coding.wcf.data.page.publicseorewriter</requiredpackage> 
     21                <requiredpackage file="requirements/de.easy-coding.wcf.data.page.publicseorewriter.tar.gz" minversion="1.1.5">de.easy-coding.wcf.data.page.publicseorewriter</requiredpackage> 
    2222        </requiredpackages> 
    2323         
     
    3636                <cronjobs>cronjobs.xml</cronjobs> 
    3737                <templatepatch>templates.diff</templatepatch> 
     38        </instructions> 
     39         
     40        <instructions type="update" fromversion="0.2.0"> 
     41                <files>files.tar</files> 
    3842        </instructions> 
    3943