IIRC, at some point this was discussed and it was considered that URLs didn't have apostrophes in them. Back in this thread quite some way. Would that be what's causing this problem?
'Safe'
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
Thanks Hil. Since when are apostrophes allowed in URLs? I'm going to be a snob and say that our code is fine; the URL should change. I dislike spaces in URLs too. Those %20's drive me nuts.
I've certainly never seen a URL with an apostrophe in it before, but I'm too zonked to go check the standard.
Thanks for the research Betsy. I still don't like 'em because they're going to cause trouble in places. Not just here. Why take the chance?
Because they are legal in URLs, which means that people will post URLs containing them. We don't control the content or format of URLs.
We don't control the content or format of URLs.
Yeah, I get that. I just meant that folks creating URLs shouldn't use them. I agree that we should try to make them work here if possible.
I can fix the URL code if someone can give me a verbal description of what it should do -- and of course show me the current version. I thought it worked by finding http colon slash-slash followed by [any number of characters as long as they're not whitespace] but obviously that's not so or we wouldn't have this problem.
EDIT: by verbal description I mean "it should match http colon slash-slash followed by any character in the following list" or "it should match http colon slash-slash followed by any character not in the following list"
The problem as I understand it is that the URL is delimited by single quotes, so if the URL has an apostrophe, it is read as the end of the URL.
The problem as I understand it is that the URL is delimited by single quotes, so if the URL has an apostrophe, it is read as the end of the URL.
That's not it, I'm almost sure.
The website is called something like Martha's Place, and the apostrophe appears in the document name so it's something like "blah.com/martha'splace.html" -- I must say I was really surprised that apostrophes are legal, and it's really not likely to come up very often.
EDIT: ita, can you post the regex that does it? I bet it's a simple fix.