Dotclear

Changeset 727


Ignore:
Timestamp:
01/26/09 08:10:17 (14 years ago)
Author:
bruno
Message:

Potential empty post bug fixed

Location:
plugins/gallery/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/gallery/trunk/class.dc.gallery.php

    r718 r727  
    786786          $cur->post_excerpt = ''; 
    787787          $cur->post_excerpt_xhtml = ''; 
    788           $cur->post_content = ' '; 
    789           $cur->post_content_xhtml = ''; 
     788          $cur->post_content = "\t"; 
     789          $cur->post_content_xhtml = "\t"; 
    790790          $cur->post_notes = null; 
    791791          $cur->post_status = 1; 
     
    809809          { 
    810810               $this->core->error->add($e->getMessage()); 
    811                echo $this->core->error->toHTML(); 
    812811               throw $e; 
    813812          } 
  • plugins/gallery/trunk/gal.php

    r689 r727  
    224224          $post_content="\t"; 
    225225      
     226     if (trim($post_content_xhtml)==='') 
     227          $post_content_xhtml="\t"; 
     228      
    226229     $post_title = $_POST['post_title']; 
    227230      
  • plugins/gallery/trunk/item.php

    r689 r727  
    155155          $post_content="\t"; 
    156156      
     157     if (trim($post_content_xhtml)==='') 
     158          $post_content_xhtml="\t"; 
     159      
    157160     $post_title = $_POST['post_title']; 
    158161      
Note: See TracChangeset for help on using the changeset viewer.

Sites map