titles with quotes
Posted: 14 July 2008 07:36 AM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2008-07-08

Hi, think i found a problem with rendering one of the hidden form values:

<input type="hidden" name="URI" value="/veranstaltungen/vortraege-und-gespraechsabende/25/lein:+"Pictures+at+an+Election+or+How+to+get+Votes+in+Japan".++Ein+Dokumentarfilm+von+Axel+Klein+zu+Wahlkampftechniken+in+Japan./" />

basically, entry title has quotes in it, so they should probably be escaped or stripped or slashed?

cheers,
matt

Profile
 
 
Posted: 15 July 2008 07:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Matt,

What kind of scenario is this? LOL
How do you get a value like that in the URI field? rasberry

 Signature 
Profile
 
 
Posted: 15 July 2008 09:43 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  4
Joined  2008-07-08

it looks like the URI field takes the permalink, and the title is urlencoded.
but the urlencoding doesn’t handle double quotes, so the

value="...." gets distorted when the title itself has double quotes in it ...

Profile
 
 
Posted: 16 July 2008 01:28 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Matt,

What does your template code look like? smile

 Signature 
Profile
 
 
Posted: 20 July 2008 06:36 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  4
Joined  2008-07-08

Hi Pie Man,

The section of interest is here:

{exp:freeform:form form_name="Event Registrations" form_class="form" notify="foo@yahoo.com" template="event_registration_notice"}
     
<h3 class="ttl-main" id="ttl-anmeldung">{exp:localized_text string="registration-form" file="oag-veranstaltungen" language="{language}"} </h3>
     <
input type="hidden" name="event_id" value="{entry_id}" />
     <
input type="hidden" name="event_name" value='{if event_title_{lc}}{event_title_{lc}}{if:else}{event_title_de}{/if}' />
     <
p class="line-btm">{if event_title_{lc}}{event_title_{lc}}{if:else}{event_title_de}{/if} <br/>

I use a plugin for pulling out localized strings, so that’s the tag in the h3.  The offending issue though seems to be in a hidden tag that freeform creates when rendering, so it’s not obvious just looking at my code…

does this help?

Profile
 
 
Posted: 23 July 2008 05:43 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

So do you actually have that entire line in your URL?

matty - 14 July 2008 07:36 AM

/veranstaltungen/vortraege-und-gespraechsabende/25/lein:+"Pictures+at+an+Election+or+How+to+get+Votes+in+Japan".++Ein+Dokumentarfilm+von+Axel+Klein+zu+Wahlkampftechniken+in+Japan./

 Signature 
Profile
 
 
Posted: 23 July 2008 05:51 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  4
Joined  2008-07-08
Pie Man - 23 July 2008 05:43 AM

So do you actually have that entire line in your URL?

matty - 14 July 2008 07:36 AM
/veranstaltungen/vortraege-und-gespraechsabende/25/lein:+"Pictures+at+an+Election+or+How+to+get+Votes+in+Japan".++Ein+Dokumentarfilm+von+Axel+Klein+zu+Wahlkampftechniken+in+Japan./

I do - it helps SEO.  But the point is that an entry title has quotes, and the freeform plugin doesn’t seem to handle URI’s with quotes in them well.  in this case it should either strip or escape them ... ?

Profile
 
 
Posted: 23 July 2008 09:32 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Matt,

I will queue this up for Freeform. smile

 Signature 
Profile