[pmwiki-users] PmForm (Mailform) questions

Patrick R. Michaud pmichaud at pobox.com
Wed Jun 13 09:14:13 CDT 2007


On Wed, Jun 13, 2007 at 04:26:04PM +0300, blues wrote:
> On Wed, 13 Jun 2007 13:06:04 +0300, Patrick R. Michaud  
> <pmichaud at pobox.com> wrote:
> > Always sending from a fixed address can be done a variety of ways...
> > the easiest is to set the 'from' field in the configuration:
> >
> >   $PmForm['mailform'] =
> >     'mailto=someone at example.com from=pmwiki at server.com
> >      form=#mailform fmt=#mailpost';
> 
> going out from the thread, i wanted to ask a side-question.
> is it possible to specify the configuration (form=, fmt= etc.)
> directly on the (:pmform:) markup? ala pagelist, somehow.
> that way it would be easier to configure, without messing
> with the php scripts.

One can specify the form= paramter within the (:pmform:) markup, 
but specifying fmt= or mailto= within (:pmform:) is generally 
disallowed as a potential security risk, as it would allow 
authors to send mail to arbitrary places or post data.

Eventually there will be a SiteAdmin.PmFormConfig page where an
administrator can specify the configuration without needing the
php scripts.  And I may provide an option to relax the restriction
on (:pmform:) for sites that aren't concerned about security
issues.  But the default will generally be that certain parameters
can only be specified in the configuration itself.

Pm



More information about the pmwiki-users mailing list