google-hilite bugs
-
I don’t have a word press installation, I’ve just observed this in live use. Sometimes the google-hilite plugin completely obliterates the text, replacing it with PHP error messages like this one:
Warning: Unknown modifier ‘/’ in /homepages/36/d91638709/htdocs/scp/wp-content/plugins/google-hilite.php on line 107
Warning: Unknown modifier ‘\’ in /homepages/36/d91638709/htdocs/scp/wp-content/plugins/google-hilite.php on line 105
Looking at the source, it is on those lines that the actual highlighting action is occuring. I got those errors by entering “string can phone” into google and hitting “I’m feeling lucky”. I’ve seen very similar messages for search terms that include forward slashes in them. The slashes get used unescaped in the search terms, which get passed to the preg_replace() function. I don’t exactly know what gets put in $term with the lucky search.
I don’t think the “perl compatible” regular expressions are 100% perl compatable, or else you might be able to run code with a well formed search term.
I can’t get the textism google hilite to do anything (the wp version says it is based on it), so I don’t know if the bug is new or just passed on.
- The topic ‘google-hilite bugs’ is closed to new replies.