On Sun, Jan 21, 2001 at 01:59:22PM +0100, Philipp Rotmann, Linksystem Muenchen wrote:
> 
>      Hi there,
> 
> On 19.01.01 (23:52), David Guerizec wrote:
> > I already encountered this kind of problem, and it was in fact
> > the 'url' field of an article that contained an '&'
> > character... (BTW, Alexander, this 'url' field should be
> > defined as CDATA cause some people use it as an 'extra'
> > field...)
> > 
> > Can you check around this line 50366 to see if a non-CDATA field 
> > contains a non-alphanumeric character ?
> 
> Yes, two 'url' fields :-)  Now, what do you _exactly_ mean by
> 'non-alphanumeric character' -- perl's interpretation of it (\W)
> gives me all the date fields, every field with whitespace and
> such, 'cause I want to look for more occurrences of the same
> phenomenon.
> 
> Then, what shall I do? Could I just put <[CDATA[...]]> tags
> around these values or do I have to encode those bad characters
> as entities?
Protect with CDATA tags. For permament solution look into
/usr/share/midgard-lib/repligard.xml and change definition of 'url'
field in 'article' type to 'text' from 'string'. After export all URLs
in articles will be protected by <[CDATA[..]]>. Repligard was specifically
designed with such tunes for specific applications in mind.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |    Aurora R&D team 
Minsk Linux Users Group |    www.minsk-lug.net    |  www.aurora-linux.com  
   IPLabs Linux Team    |     linux.iplabs.ru     | Architecte Open Source
-- "Trust me.  I know what I'm doing."
-- Sledge Hammer

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to