Plugin Directory

Changeset 1574654


Ignore:
Timestamp:
01/14/2017 02:37:57 PM (9 years ago)
Author:
XinguPL
Message:
  • Strip_Tags fix
Location:
wplingo/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wplingo/trunk/includes/ajax.php

    r1564659 r1574654  
    3434
    3535    $post_id = intval(lingo_request("post_id"));
    36     $msg = sanitize_text_field(lingo_request("post_message"));
     36    //$msg = sanitize_text_field(lingo_request("post_message"));
     37    $msg = strip_tags(trim(lingo_request("post_message")), "<p><br><b><i><u><ul><li>");
    3738   
    3839    $valid = true;
     
    187188function lingo_insert_new_post() {
    188189    $id = intval(lingo_request('parent_id'));
    189     $content = sanitize_text_field(lingo_request('post_content'));
     190    //$content = sanitize_text_field(lingo_request('post_content'));
     191    $content = strip_tags(trim(lingo_request("post_content")), "<p><br><b><i><u><ul><li>");
    190192   
    191193    $valid = true;
  • wplingo/trunk/includes/frontend-topic.php

    r1574110 r1574654  
    4444                }
    4545               
    46                 $msg = sanitize_text_field(lingo_request("new_post_message"));
     46                //$msg = sanitize_text_field(lingo_request("new_post_message"));
     47                $msg = strip_tags(trim(lingo_request("new_post_message")), "<p><br><b><i><u><ul><li>");
    4748               
    4849                $valid = true;
  • wplingo/trunk/includes/shortcodes.php

    r1574110 r1574654  
    5454                    $title = sanitize_text_field(lingo_request("new_topic_title"));
    5555                    $description = sanitize_text_field(lingo_request("new_topic_description"));
    56                     $message = sanitize_text_field(lingo_request("new_topic_message"));
     56                    //$message = sanitize_text_field(lingo_request("new_topic_message"));
     57                    $message = strip_tags(trim(lingo_request("new_topic_message")), "<p><br><b><i><u><ul><li>");
    5758                    $tags = sanitize_text_field(lingo_request("new_topic_tags"));
    5859                   
  • wplingo/trunk/templates/topic-single.php

    r1574110 r1574654  
    2929                            $forumStatus = $froumMeta["lingo_forum_status"];
    3030                        ?>
    31                         <?php if($topic_status == 'closed'): ?>
    32                             <?php lingo_display_warning(__('This topic is closed.', 'lingo')); ?>
    33                         <?php endif; ?>
     31                        <?php //if($topic_status == 'closed'): ?>
     32                            <?php //lingo_display_warning(__('This topic is closed.', 'lingo')); ?>
     33                        <?php //endif; ?>
    3434
    3535                        <?php $result = lingo_get_topic_posts(get_the_ID()); ?>
  • wplingo/trunk/wplingo.php

    r1574111 r1574654  
    66 * Author: Mark Winiarski
    77 * Text Domain: lingo
    8  * Version: 1.0.0
     8 * Version: 1.0.1
    99 *
    1010 * WPLingo is free software: you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.