filter adding a zero to end of string?

Topics: User Forum
Oct 9, 2006 at 4:55 PM
Hi,

I have this rule:
RewriteRule ^(/\w*/)dashboard/(\w)/(\d)/(\w+)/(true|false)/(\w)/(\w)/(\w)/(\d+,)/(\w/)$

$1dashboard/$2.rails?page=$3&section=$4&newTable=$5&order=$6&field=$7&search=$8&selectedLanguages=$9&searchSection=$10

I've set the MaxMatchCount to 11. The rule works and I get the match I expect, but a 0 is being attached to the end of the query string.

Here is the url going in:
/bryanbrown/lightmakercms/cms/dashboard/tablecontent/2/thisWeek/false/desc/FldDueDate//1,2,3,5,6,14/Websites/_Portfolio

and this is the output.
page=2&section=thisWeek&newTable=false&order=desc&field=FldDueDate&search=&selectedLanguages=1%2c2%2c3%2c5%2c6%2c14&searchSection=Websites%2fPortfolio0

notice the 0 at the end of the query string. Any ideas why this is happening?

Thanks
Bryan
Coordinator
Oct 17, 2006 at 8:41 PM
yes!!
this is a BUG.

The replacement pattern is not being parsed properly.
IIRF replaces $10 in the pattern with the 10th match, but then skips only one character (skipping over the 1) and finds the zero. The zero is then appended to your output.

This will require a fix to the source code to correct.

-Dino
Coordinator
Oct 27, 2006 at 12:25 AM
this bug is fixed in interim builds of v1.2.11 .

-Cheeso

Oct 29, 2006 at 8:08 AM
Can you post the latest interim build so we can test it?

I didn't experience this with .10 but with the .11 interim you posted in this thread (http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=IIRF&ForumId=408&ThreadId=1722) it exists.

Thanks Dino!
Coordinator
Oct 31, 2006 at 8:10 PM
Can you retry this:
http://cheeso.members.winisp.net/dl/IonicIsapiRewriter-1.2.11a.zip

Guru, I apologize, I updated that build (using the same build name) on Friday at 220pm, PAcific time, and I think that was just after you downloaded and posted your experience on the other thread.