--nextPart42968626.8KkUFpmnMZ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Stephan Kulow wrote: >On Thursday 19 May 2005 21:23, Zack Rusin wrote: >> > - handle URL-looking non-URLs (example: ed2k://|file| >> >> Ugly_looking[file]name|343928602|00000000000000000000000000000000|/) >> >> QUrl follows the URI specification in this respect. QUrl does the >> right thing in rejecting it. If KUrl accepted this stuff, then that's >> really bad. > >I don't understand this point. What is the problem here? From what I > remember, the only thing that the URI specification says is that > everything is allowed behind the : - unless protocol is among > That's the spec. The problem is that KURL in the KDE 3.2 developing days started using IDNA= =20 and the "hostname" |file|Ugly_looking[file]name|343928602|00000000000000000000000000000000| was being passed to the IDNA functions. Since it is not a hostname, this=20 generated many different errors, the foremost being the enforcement of=20 the 64-character limit per label. What's more, it lowercases the name,=20 since hostnames are case insensitive. And it violates the STD3 rules for=20 ASCII-only hostnames. ([, ], | aren't allowed) The culprit here is the // just behind ed2k:. If it weren't there, this=20 mess would never have happened. Or if the eDonkey 2000 authors used a=20 sane URL in the first place. =2D-=20 Thiago Macieira - thiago (AT) macieira (DOT) info PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 5. Swa he g=C3=A9anhwearf t=C3=B3 timbran, and hwonne he c=C3=B3m, l=C3=A1!= Unix cw=C3=A6=C3=B0 "Hello,=20 World". =C7=BCfre =C7=BDghwilc w=C3=A6s gl=C3=A6d and seo woruld w=C3=A6s f= r=C3=A9o. --nextPart42968626.8KkUFpmnMZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCjciNM/XwBW70U1gRAmrSAJ0VHER4lj7FIMiMWiId+xa0vRDcqACeIGFf PJlEXh8mG1HodSWJmqFsOME= =xOQC -----END PGP SIGNATURE----- --nextPart42968626.8KkUFpmnMZ--