[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/add.pt Avoid quoting the add form URL twice by unquoting the action attribute.

Shane Hathaway shane at zope.com
Mon Nov 29 19:44:53 EST 2004


Log message for revision 28539:
  Avoid quoting the add form URL twice by unquoting the action attribute.
  
  Otherwise, the browser sees the encoded equal sign in the form's action
  attribute and encodes it again, leading to "%253D".
  
  In general, it appears that browsers expect "href" attributes to already
  be URL-quoted, but not any other attributes.  Confusing to say the least.
  

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/add.pt

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/add.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/add.pt	2004-11-30 00:36:51 UTC (rev 28538)
+++ Zope3/trunk/src/zope/app/form/browser/add.pt	2004-11-30 00:44:53 UTC (rev 28539)
@@ -4,8 +4,8 @@
 
   <div metal:define-macro="addform">
 
-    <form action="." tal:attributes="action request/URL" method="post"
-          enctype="multipart/form-data">
+    <form action="." tal:attributes="action request/URL/url:unquote"
+          method="post" enctype="multipart/form-data">
 
       <div metal:define-macro="formbody">
 



More information about the Zope3-Checkins mailing list