This must be what going mad feels like.

Simon ,'Jaynestown'


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.

To-do list


John H - Mar 25, 2003 7:58:41 pm PST #3607 of 10000

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.


§ ita § - Mar 25, 2003 8:14:01 pm PST #3608 of 10000
Well not canonically, no, but this is transformative fiction.

Here you go, John:

/(^|\\s)(https?:\\/\\/[^\\s]*)\\b(\\/?)/

Are spaces legal or no? How do we do on those? Also, was there a problem with _?


Jon B. - Mar 25, 2003 8:23:11 pm PST #3609 of 10000
A turkey in every toilet -- only in America!

That's not it, I'm almost sure.

If you look at the html source code of the post as displayed, that's what's going on. What am I missing?


John H - Mar 25, 2003 8:57:27 pm PST #3610 of 10000

Sorry Jon, you're right, I'm wrong. So the problem could be fixed simply by changing the regex to wrap the URL in double quotes not single. Double quotes are definitely not allowed in URLs ... right?

I must admit I'm a bit shocked at the use of single quotes for HTML attribute values. Aren't there some browsers where that would be a big problem?


Jon B. - Mar 25, 2003 9:11:28 pm PST #3611 of 10000
A turkey in every toilet -- only in America!

Double quotes are definitely not allowed in URLs ... right?

I hope not. Better look at the code though, to make sure that won't cause a different problem.


§ ita § - Mar 25, 2003 9:14:45 pm PST #3612 of 10000
Well not canonically, no, but this is transformative fiction.

If the regexp is working, we can URLENCODE the URL.

Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs


Michele T. - Mar 25, 2003 9:46:48 pm PST #3613 of 10000
with a gleam in my eye, and an almost airtight alibi

Nothing to add, just joining the throng of the shocked and appalled.


Lyra Jane - Mar 26, 2003 6:32:46 am PST #3614 of 10000
Up with the sun

Test 1 2 3

Edit: Sorry, I had a message I thought I posted not show up, and I figured this was a better place to test than elsewhere. Carry on.


Zoe Finch - Mar 29, 2003 4:52:41 am PST #3615 of 10000
Gradh tu fhein

Nothing to add, just joining the throng of the shocked and appalled.

And deeply concerned.


sarameg - Mar 29, 2003 5:18:36 pm PST #3616 of 10000

Oh! Oh! Oh!

I think I found a solution to the search function overload problems!

We need PIGEONS!

Sorry.