Crayon Syntax Highlighter - Version 1.3.1

Version Description

  • This fixes an issue that was not completely fixed in 1.3.0:
  • Removed the lookbehind condition for escaping $ and \ for backreference bug
Download this release

Release Info

Developer akarmenia
Plugin Icon wp plugin Crayon Syntax Highlighter
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

Files changed (3) hide show
  1. crayon_wp.class.php +1 -1
  2. readme.txt +5 -1
  3. util/crayon_util.class.php +1 -1
crayon_wp.class.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text. <a href="options-general.php?page=crayon_settings">View Settings.</a>
6
- Version: 1.3.0
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  License: GPL2
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text. <a href="options-general.php?page=crayon_settings">View Settings.</a>
6
+ Version: 1.3.1
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ak.net84.net/
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 1.3.0
8
 
9
  Syntax Highlighter supporting multiple languages, themes, highlighting from a URL, local file or post text.
10
 
@@ -44,6 +44,10 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.3.0 =
48
  * Recommended upgrade for everyone.
49
  * Major bug fix thanks to twitter.com/42dotno and twitter.com/eriras
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 1.3.1
8
 
9
  Syntax Highlighter supporting multiple languages, themes, highlighting from a URL, local file or post text.
10
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.3.1 =
48
+ * This fixes an issue that was not completely fixed in 1.3.0:
49
+ * Removed the lookbehind condition for escaping $ and \ for backreference bug
50
+
51
  = 1.3.0 =
52
  * Recommended upgrade for everyone.
53
  * Major bug fix thanks to twitter.com/42dotno and twitter.com/eriras
util/crayon_util.class.php CHANGED
@@ -367,7 +367,7 @@ class CrayonUtil {
367
  // Escape backreferences from string for use with regex
368
  public static function preg_escape_back($string) {
369
  // Replace $ with \$ and \ with \\
370
- $string = preg_replace('#(?<!\\\\)(\\$|\\\\)#', '\\\\$1', $string);
371
  return $string;
372
  }
373
 
367
  // Escape backreferences from string for use with regex
368
  public static function preg_escape_back($string) {
369
  // Replace $ with \$ and \ with \\
370
+ $string = preg_replace('#(\\$|\\\\)#', '\\\\$1', $string);
371
  return $string;
372
  }
373