From 973e77debf541dacca7e099446ffe3df64cab0f6 Mon Sep 17 00:00:00 2001 From: LolZim Date: Sat, 20 Jun 2020 22:09:58 +0000 Subject: [PATCH] fix BE error git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2328081 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- class/task.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class/task.php b/class/task.php index edc315f..fb12af8 100644 --- a/class/task.php +++ b/class/task.php @@ -337,6 +337,8 @@ class MCI_Footnotes_Task { // search footnotes short codes in the content do { // get first occurrence of the footnote short code [start] + $i_int_len_Content = strlen($p_str_Content); + if ($l_int_PosStart > $i_int_len_Content) $l_int_PosStart = $i_int_len_Content; $l_int_PosStart = strpos($p_str_Content, $l_str_StartingTag, $l_int_PosStart); // no short code found, stop here if ($l_int_PosStart === false) {