Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# D3grade 4/17/2007 4:21 AM
Hi guys,

I'm using path info to pass through an email address as a paramter, however the email address is getting split on the period (.)

Anyone know the best way to pass the email through?

Many thanks

Matt
# robert-mischke 4/17/2007 5:08 AM
May be you could replace the "." with DOT :-)

Yours
Robert
# D3grade 4/17/2007 6:05 AM
Hmm,

I need to test what effects it will have but i have changed the section.aspx url mapping regex from
match="(\d+)\/section.aspx([\w|/]*)\??(.*)"

to
match="(\d+)\/section.aspx([\w|/|\p{P}]*)\??(.*)"

so it now allows punctuation to be passed through

Does anybody know of any reason not to do this?

Matt
# martijnb 4/17/2007 6:23 AM
I think you're safe with your solution. Btw, what happens when you urlencode the email address?
# D3grade 4/17/2007 7:17 AM
martijnbI think you're safe with your solution.

Cool, I will keep my eye open for any adverse effects never the less.
martijnbBtw, what happens when you urlencode the email address?

The @ symbol is url encoded, however the periods remain
# D3grade 5/1/2007 11:05 AM
Ok, i did find a problem with using my previous regular expression.

The problem was, that i told it to match all words and forwards slashes and all punctuation, however a '?' is classed as punctuation. I found this out by trying to do a search from the search input module linked to a search module.

When ever i ran it, it wouldn't work, because the url wasn't being parsed correctly.

I have now changed my expresion to the following
match="(\d+)\/section.aspx([^\?]*)\??(.*)"

So now i am saying mach anything except a question mark.

Does anyone see any problems with this?