Aquarionics

Tuesday 6th January 2004

Reasons IE Sucks chipmonks though chainlink fencing, Number 11 in a series of infinity

Given this URL:

http://www.aquarionics.com/gallery/Gid_[and]_Suzi’s_New_Year_2003

IE does the following:

http://www.aquarionics.com/gallery/Gid_%5Band%5D_Suzi/’s_New_Year_2003

Now, I realise the escaping error in the generated URL was my own stupid fault, but the fact that IE automatically reverses any backslashes in a URL - to retain compatibility with Windows’ broken directory seperator – is interesting. It means, for example, we can do this:

@import url(”/assets/cssspecial-ie-stylesheet.css”);

and IE will load it (It will try to “fix” the broken backslash) where Gecko/KHTML will attempt to load a file called “cssspecial-ie-stylesheet.css” in the assets directory is interesting. New browser-hack?

This isn’t news, really. When the first version of the new, all accessible RNIB site went live (And I ranted about it) some of the links contained backslashes, and thus broke for Mozilla, and it’s still annoying, but it might be useful.

What would be really interesting would be combining this with an IIS server. Does the server resolve it as the right path on the system (The Windows one) or as the RFC 2068 compliant one?

My solution, by the way, was to rename the album to “New Years 2003” and leave the escaping problem until I’ve got time to fix it properly.

Those who spoke on this:

gravatar image

Pingter:

2004-01-08 06:42 2 days after the Original Article

I think some ’s have been lost in that post somewhere, and if I write that without the apostrophe it disappears in the comment preview as well…

Comment Link

gravatar image

Peter:

2004-01-08 09:35 3 hrs after Pingter

Well, I can’t see any instances of the character causing the problem at all – pingter, in your comment I just see ’s, without whatever character should be before the ’

I assume the little beastie is the diagonal slash that isn’t /, yesno?

Comment Link

gravatar image

Pingter:

2004-01-08 19:07 10 hrs after Peter

Indeed. It did appear in the preview though…

\\\\\\\

^ Are there any there? :-)

Comment Link

gravatar image

Aquarion:

2004-01-08 19:48 41 mins after Pingter

Yeah, half as many as you put in :-)

I wrote the [E]2 commenting system with PHP’s “Magic Slashes” turned on, which caused fun when taking things out of the database and previews. As I recall I strip all escape systems at least three times {stripslashes(stripslashes(stripslashes($string)))} before display, just to be sure.

  • Aquarion adds this to the “Bugs to be fixed” list

Comment Link

gravatar image

Pingter:

2004-01-09 07:55 12 hrs after Aquarion

Oops.

It works much better if you turn it off and do it manually, once ;-) (But you know that)

Comment Link


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.

Aquarionics on Livejournal


Aquarion [updating]
Twitter last updated


More Journal:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.659 seconds, 28 queries, 2.68Mb on Fri, 07 Nov 2008 23:41:36 +0000
Generated by Epistula Version 2.0.3