Dotclear

Changeset 3105


Ignore:
Timestamp:
03/22/12 09:52:06 (11 years ago)
Author:
bruno
Message:

[Grumph 1.2] Fixed sql requests

Location:
plugins/grumph
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/grumph/_define.php

    r3104 r3105  
    1818     /* Description*/         "Grab Resources and Urls to Manage Posts Handily", 
    1919     /* Author */             "Bruno Hondelatte", 
    20      /* Version */            "1.1", 
     20     /* Version */            "1.2", 
    2121     /* Permissions */        'usage,contentadmin' 
    2222); 
  • plugins/grumph/class.grumph.php

    r3104 r3105  
    9393          $res = $this->grabResources($rs); 
    9494          $strReq = 'UPDATE '.$this->core->prefix.'post '. 
    95                "SET post_res='".serialize($res)."' ". 
     95               "SET post_res='".$this->core->con->escape(serialize($res))."' ". 
    9696               "WHERE post_id=".$rs->post_id." "; 
    9797          return $this->core->con->execute($strReq);    
     
    103103          } else { 
    104104               $strReq = 'SELECT post_res FROM '.$this->core->prefix.'post '. 
    105                     'WHERE post_id='.$post->post_id; 
     105                    'WHERE post_id='.((integer)$post->post_id); 
    106106               $res = @unserialize($this->core->con->select($strReq)->f(0));          
    107107          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map