From: | "Itagaki Takahiro" <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #4822: xmlattributes encodes '&' twice |
Date: | 2009-05-25 09:39:39 |
Message-ID: | 200905250939.n4P9ddaf064351@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
The following bug has been logged online:
Bug reference: 4822
Logged by: Itagaki Takahiro
Email address: itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp
PostgreSQL version: 8.4dev
Operating system: Linux, Windows
Description: xmlattributes encodes '&' twice
Details:
=# SELECT xmlelement(name a, xmlattributes('./qa?a=1&b=2' as href), 'Q&A');
xmlelement
--------------------------------------------
<a href="./qa?a=1&amp;b=2">Q&A</a>
(1 row)
'&' in xmlattributes seems to be encoded twice.
( '&' => '&' => '&amp;' )
The bug only exists in 8.4dev;
PostgreSQL 8.3 correctly encodes '&' only once.
From | Date | Subject | |
---|---|---|---|
Next Message | Shulamit otzer | 2009-05-25 16:08:50 | BUG #4823: problems downloading |
Previous Message | Tom Lane | 2009-05-24 17:15:20 | Re: BUG #4821: LIKE '%_' fails |
From | Date | Subject | |
---|---|---|---|
Next Message | Kolb, Harald (NSN - DE/Munich) | 2009-05-25 10:10:16 | Re: Synchronous replication: Promotion of Standby to Primary |
Previous Message | Dimitri Fontaine | 2009-05-25 09:16:23 | search_path vs extensions |