Bug: Apostrophes in page name cause truncation
—
!!1!
!
Please click in the box above and give a meaningful
title, then fill out any information below that you can.
It is all optional,
and I’m grateful for whatever you provide.
!
!2!
!
—
!!3!
!
>
—
!!4!
!
Your name:
Bil Kleb !
!5!
!
!
!6!
!
Soks version:
1.0.3
—
!!7!
!
!
!8!
!
Your operating system:
Linux
(FC3?
)
—
!!9!
!
!
!10!
!
Your version of
ruby: 1.8.2
—
!!11!
!
!
!12!
!
Your browser:
Firefox
—
!!13!
!
—
!!14!
!
—
!!15!
!
And please describe the problem below:
!
!16!
!
—
!!17!
!
I just entered a page
“
title” with a apostrope in it and the
title was truncated just before the apostrophe,
e.g.
,
—
!!18!
!
—
!!19!
!
!
!20!
!
Outside LaRC: New Town Old before It's Begun? !
!21!
!
!
!22!
!
—
!!23!
!
became
—
!!24!
!
—
!!25!
!
!
!26!
!
Outside LaRC:
New Town Old before It
—
!!27!
!
!
!28!
!
—
!!29!
!
upon saving.
!
!30!
!
!
!31!
!
—
!!32!
!
!
!33!
!
>I think the bug is because the page
title box is an
‘input’
field rather than a
‘textarea’
field and therefore cannot cope with apostrophes.
In the development version of Soks I’ve switched the templates to use one line text areas which seems to have solved this.
tamc !
!34!
!
—
!!35!
!
—
!!36!
!
>Can I just patch this in the appropriate view for the time being?
Bil !
!37!
!
—
!!38!
!
!
!39!
!
>Should be ok.
You can see the patch I made at
http://www.counsell.org/cgi-bin/darcs.cgi/soks-testing/?c=annotate&p=20050831185523-46628-ca0c02923414843a1e5f8fb6b57732972c9f7210.gz tamc !
!40!
!
—
!!41!
!