summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-util.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-08-03 22:51:36 +0000
committermental <mental@users.sourceforge.net>2006-08-03 22:51:36 +0000
commit6583434c88f6cf2fdc9053a5c34383190d44e284 (patch)
tree483f4b44f7b3040638981c9507b500ae773e34b8 /src/xml/repr-util.cpp
parentempty messages are passed onto all listeners in pedro, gui ignores such messages (diff)
downloadinkscape-6583434c88f6cf2fdc9053a5c34383190d44e284.tar.gz
inkscape-6583434c88f6cf2fdc9053a5c34383190d44e284.zip
add fixup for infamous (and apparently quite widespread) "duck prion"
(bzr r1554)
Diffstat (limited to 'src/xml/repr-util.cpp')
-rw-r--r--src/xml/repr-util.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 3a6b9aee4..83231e5da 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -149,7 +149,7 @@ static SPXMLNs *namespaces=NULL;
static void
sp_xml_ns_register_defaults()
{
- static SPXMLNs defaults[8];
+ static SPXMLNs defaults[9];
defaults[0].uri = g_quark_from_static_string(SP_SODIPODI_NS_URI);
defaults[0].prefix = g_quark_from_static_string("sodipodi");
@@ -187,7 +187,14 @@ sp_xml_ns_register_defaults()
defaults[7].uri = g_quark_from_static_string(SP_BROKEN_SODIPODI_NS_URI);
defaults[7].prefix = g_quark_from_static_string("sodipodi");
- defaults[7].next = NULL;
+ defaults[7].next = &defaults[8];
+
+ // "Duck prion"
+ // This URL became widespread due to a bug in versions <= 0.43
+
+ defaults[8].uri = g_quark_from_static_string("http://inkscape.sourceforge.net/DTD/s odipodi-0.dtd");
+ defaults[8].prefix = g_quark_from_static_string("sodipodi");
+ defaults[8].next = NULL;
namespaces = &defaults[0];
}