]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/smiley.pm
fixup editpage links on rename
[git.ikiwiki.info.git] / IkiWiki / Plugin / smiley.pm
index 96d7f5900b2f0b109b89dc804db31a596c826edc..50f2686277afa2de60ef86bd88a870938f1c96e4 100644 (file)
@@ -79,11 +79,12 @@ MATCH:      while (m{(?:^|(?<=\s|>))(\\?)$smiley_regexp(?:(?=\s|<)|$)}g) {
                        substr($_, $spos, length($smiley))=
                                htmllink($params{page}, $params{destpage},
                                         $smileys{$smiley}, linktext => $smiley);
                        substr($_, $spos, length($smiley))=
                                htmllink($params{page}, $params{destpage},
                                         $smileys{$smiley}, linktext => $smiley);
+                       pos=$epos+1;
                }
 
                # Breaks out at end, otherwise it will scan through again,
                # replacing de-escaped ones.
                }
 
                # Breaks out at end, otherwise it will scan through again,
                # replacing de-escaped ones.
-               last unless defined pos;
+               #last unless defined pos;
        }
 
        return $_;
        }
 
        return $_;