Plugin Directory

Changeset 1954601


Ignore:
Timestamp:
10/10/2018 02:57:35 PM (7 years ago)
Author:
thrivehive
Message:

v2.3.1

Location:
thrivehive/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/README.md

    r1953283 r1954601  
    9090
    9191## Changelog
     92* V 2.3.1 Remove slashes and ensure correct character encoding for saved CSS
    9293* V 2.3 Added ability to login using params
    9394* V 2.201 Bugfix for newly spun up Changeling sites data not loading
  • thrivehive/trunk/controllers/changeling.php

    r1951087 r1954601  
    8686      $compiled_bootstrap_sourcemap_file_location = $changeling_css_dir .'/theme-user-custom.css.map';
    8787
    88       $css = $_REQUEST['css'];
    89       $minified = $_REQUEST['minified'];
    90       $map = $_REQUEST['sourceMap'];
     88      // Add BOM (byte order mark) to correct interpretation of files as UTF-8, necessary for Font Awesome glyphs
     89      // Also remove slashes added to escape quotes when CSS was sent as JSON
     90      // See https://stackoverflow.com/a/9047876
     91      $utf8Bom = "\xEF\xBB\xBF";
     92      $css = $utf8Bom . stripslashes($_REQUEST['css']);
     93      $minified = $utf8Bom . stripslashes($_REQUEST['minified']);
     94      $map = $utf8Bom . stripslashes($_REQUEST['sourceMap']);
    9195
    9296      if (!file_exists($changeling_css_dir)) {
  • thrivehive/trunk/thrivehive.php

    r1953283 r1954601  
    55   *Plugin URI: http://thrivehive.com
    66   *Description: A plugin to include ThriveHive's tracking code
    7    *Version: 2.3
     7   *Version: 2.3.1
    88   *Author: ThriveHive
    99   *Author URI: http://thrivehive.com
Note: See TracChangeset for help on using the changeset viewer.