Skip to content

Commit b1f227d

Browse files
committed
Version 2.5
1 parent 35c29b3 commit b1f227d

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

.DS_Store

8 KB
Binary file not shown.

assets/.DS_Store

6 KB
Binary file not shown.

includes/add-embeds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function ce_quick_replace( $content = '', $options = '', $search = '' ) {
141141
$end_pos = strpos( $content, $options['closing_ident'], $start_pos + 1 );
142142

143143
if ( false !== $end_pos ) {
144-
$url = substr( $content, $start_pos + $open_len, $end_pos - $start_pos - $close_len );
144+
$url = substr( $content, $start_pos + strlen( $options['opening_ident'] ), $end_pos - ( $start_pos + strlen( $options['opening_ident'] ) ) );
145145
$file = ce_get_file( $url );
146146
if ( false !== $file ) {
147147
$content = str_replace( $options['opening_ident'] . $url . $options['closing_ident'], $file, $content );

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ I use semantic versioning, with the first release being 1.0.
209209

210210
= 2.5 =
211211
* Enhancement: This release is a revised version of 2.4, with less impact to other plugins and users. See the README for more details, but this undoes the changes in 2.4 and adds in filtering of code embed fields for users without the correct permissions.
212+
* Bug: Fixed a long time bug that could cause an infinite loop to occur in rare situations
212213

213214
= 2.4 =
214215
* Enhancement: A vulnerability was raised to me but is actually an issue with Core. I've implemented a fix that protects not just this plugin but any others you may have installed. Please read the section in the README titled "Custom Field Security" for more details

0 commit comments

Comments
 (0)