Changeset 3105
- Timestamp:
- 03/22/12 09:52:06 (11 years ago)
- Location:
- plugins/grumph
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/grumph/_define.php
r3104 r3105 18 18 /* Description*/ "Grab Resources and Urls to Manage Posts Handily", 19 19 /* Author */ "Bruno Hondelatte", 20 /* Version */ "1. 1",20 /* Version */ "1.2", 21 21 /* Permissions */ 'usage,contentadmin' 22 22 ); -
plugins/grumph/class.grumph.php
r3104 r3105 93 93 $res = $this->grabResources($rs); 94 94 $strReq = 'UPDATE '.$this->core->prefix.'post '. 95 "SET post_res='". serialize($res)."' ".95 "SET post_res='".$this->core->con->escape(serialize($res))."' ". 96 96 "WHERE post_id=".$rs->post_id." "; 97 97 return $this->core->con->execute($strReq); … … 103 103 } else { 104 104 $strReq = 'SELECT post_res FROM '.$this->core->prefix.'post '. 105 'WHERE post_id='. $post->post_id;105 'WHERE post_id='.((integer)$post->post_id); 106 106 $res = @unserialize($this->core->con->select($strReq)->f(0)); 107 107 }
Note: See TracChangeset
for help on using the changeset viewer.