Changeset 893
- Timestamp:
- 03/16/09 14:03:46 (14 years ago)
- Location:
- plugins/contribute
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/contribute/_admin.php
r848 r893 143 143 if (!empty($host)) 144 144 { 145 $link = '<br />'. 146 '<a href="'.html::escapeHTML($site).'">'.$host.'</a>';145 $link = '<br />'.'<a href="'.html::escapeHTML($site).'">'. 146 html::escapeHTML($host).'</a>'; 147 147 } 148 148 } -
plugins/contribute/_define.php
r872 r893 28 28 /* Description*/ "Allow visitors to contribute to your blog", 29 29 /* Author */ "Moe (http://gniark.net/)", 30 /* Version */ '1.0-alpha 8',30 /* Version */ '1.0-alpha9', 31 31 /* Permissions */ 'admin' 32 32 ); -
plugins/contribute/_public.php
r848 r893 200 200 { 201 201 $post->post_format = $_POST['post_format']; 202 // fixme : security :limit to wiki without XHTML ?203 // $core->wiki2xhtml->setOpt('parse_pre',0);204 202 } 205 203 } … … 236 234 } 237 235 236 # HTML filter 237 $filter = new htmlFilter; 238 238 # excerpt 239 if (($core->blog->settings->contribute_allow_ category=== true)239 if (($core->blog->settings->contribute_allow_excerpt === true) 240 240 && (isset($_POST['post_excerpt']))) 241 241 { 242 $post->post_excerpt = $_POST['post_excerpt'];242 $post->post_excerpt = trim($filter->apply($_POST['post_excerpt'])); 243 243 } 244 244 # content 245 245 if (isset($_POST['post_content'])) 246 246 { 247 $post->post_content = $_POST['post_content']; 248 } 247 $post->post_content = trim($filter->apply($_POST['post_content'])); 248 } 249 unset($filter); 249 250 250 251 # avoid Notice: Indirect modification of overloaded property
Note: See TracChangeset
for help on using the changeset viewer.