[wp-testers] a bug in the internal permalinks

Mark Jaquith mark.wordpress at txfx.net
Thu Jan 18 05:21:42 GMT 2007


On Jan 17, 2007, at 10:38 PM, Stephan Spencer wrote:

> [[^/]+/([^/]+)/?$] => index.php?attachment=$1
>
> That rewrite rule is a bit too greedy. It will match on  
> www.mydomain.com/anything/anything, including www.mydomain.com/tag/ 
> randomkeyword. So the UltimateTagWarrior rewrites, which are at the  
> very end of the array, never get a chance to be invoked before this  
> above-mentioned rogue rule hijacks things.
>
> I don't know what other plugins are affected by this, other than  
> Ultimate Tag Warrior. WP-Print and WP-Email are fine because those  
> 2 plugins put their rules at the very top of the array instead of  
> the bottom.

Report this to Christine Davis (UTW author).  I don't think you can  
get around that greediness any other way than making sure that all  
other rules happen earlier.

--
Mark Jaquith
http://markjaquith.com/

Covered Web Services
http://covered.be/




More information about the wp-testers mailing list