Urban Giraffe Support | Search Regex
Serious Bug?
First lemme say thanks for the awesome plugin! I have found what I believe to be a pretty serious bug though. When I choose the replace button (rather than search and replace), if it finds multiple instances of the search term in the same page, then you replace them one at a time, it gets screwy.
For instance, if I'm searching for "articles/" to replace with articles.php it behaves like this:
First instance in post 233:
http://www.mydomain.com/articles/ becomes http://www.mydomain.com/articles.php (correct)
Second instance in post 233:
http://www.mydomain.com/articles/ becomes http://www.mydomain.carticles.phpes/ (very wrong)
Third instance in post 233:
http://www.mydomain.com/articles/ becomes http://www.mydoarticles.phpicles/ (even more wrong)
and so on...
It seems like it's just doing a simple character count to do the replace and when the number of characters before the search term changes, it doesn't account for that. Pretty serious bug I think. Luckily I ran the search again after, noticed the problem and was able to fix it manually. I could see how you might not even notice something like this though if you weren't double checking.

Reply
You must log in to post.