Plugin Directory

Changeset 1036988


Ignore:
Timestamp:
12/02/2014 08:24:17 PM (11 years ago)
Author:
jquindlen
Message:

4.9.23

  • Updated: Implemented a better way to insure paragraphs are saved in the text editor for ticket submission and reply
Location:
wpsc-support-tickets
Files:
114 added
2 edited

Legend:

Unmodified
Added
Removed
  • wpsc-support-tickets/trunk/readme.txt

    r1036678 r1036988  
    55Requires at least: 3.5.0
    66Tested up to: 4.0
    7 Stable tag: 4.9.22
     7Stable tag: 4.9.23
    88
    99== Description ==
     
    105105* Updated: Added randomized addition to filenames & updated the file upload presentation
    106106
     107= 4.9.23 =
     108* Updated: Implemented a better way to insure paragraphs are saved in the text editor for ticket submission and reply
     109
    107110= 4.9.22 =
    108111* Added: The opened and closed tabs inside the tickets list now shows the ID of the ticket.
  • wpsc-support-tickets/trunk/wpsc-support-tickets.php

    r1036678 r1036988  
    44  Plugin URI: http://wpscsupporttickets.com/wordpress-support-ticket-plugin/
    55  Description: An open source help desk and support ticket system for Wordpress using jQuery. Easy to use for both users & admins.
    6   Version: 4.9.22
     6  Version: 4.9.23
    77  Author: Jeff Quindlen
    88  Author URI: URI: http://wpscsupporttickets.com/
     
    24272427
    24282428        // Code for Session Cookie workaround
    2429         if (isset($_POST["PHPSESSID"])) {
     2429        if (@isset($_POST["PHPSESSID"])) {
    24302430                session_id($_POST["PHPSESSID"]);
    2431         } else if (isset($_GET["PHPSESSID"])) {
     2431        } else if (@isset($_GET["PHPSESSID"])) {
    24322432                session_id($_GET["PHPSESSID"]);
    24332433        }
     
    25602560
    25612561        $wpscst_title = base64_encode(strip_tags($_POST['wpscst_title']));
    2562         $wpscst_initial_message = base64_encode(nl2br($_POST['wpscst_initial_message'] . $wpscst_initial_message));
     2562       
     2563        //$wpscst_initial_message = base64_encode(nl2br($_POST['wpscst_initial_message'] . $wpscst_initial_message));
     2564        // Alternative new method for dealing with line breaks adding in 4.9.23
     2565        $wpscst_initial_message = base64_encode( '<p>'. preg_replace('/[\r\n]+/', '</p><p>', $_POST['wpscst_initial_message'] . $wpscst_initial_message) . '</p>' );
     2566       
    25632567        $wpscst_department = base64_encode(strip_tags($_POST['wpscst_department']));   
    25642568        $wpscst_severity = $wpdb->escape($_POST['wpscst_severity']);
     
    28512855
    28522856
    2853                 $wpscst_message = base64_encode(nl2br($_POST['wpscst_reply'] . $wpscst_message));
    2854 
     2857                //$wpscst_message = base64_encode(nl2br($_POST['wpscst_reply'] . $wpscst_message));
     2858                // Alternative new method for dealing with line breaks adding in 4.9.23
     2859                $wpscst_message = base64_encode( '<p>'. preg_replace('/[\r\n]+/', '</p><p>', $_POST['wpscst_reply'] . $wpscst_message) . '</p>' );
     2860               
    28552861                $sql = "
    28562862                INSERT INTO `{$wpdb->prefix}wpscst_replies` (
Note: See TracChangeset for help on using the changeset viewer.