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
May be you could replace the "." with DOT :-)
Yours
Robert
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
I think you're safe with your solution. Btw, what happens when you urlencode the email address?
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
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?