Loading...
 
Skip to main content

admin validation sends a bad link

Status
Closed
Subject
admin validation sends a bad link
Version
1.9.x
Category
  • Error
Feature
Administration
Templates (Smarty)
Resolution status
Fix on the Way
Submitted by
Xeno
Volunteered to solve
Xeno
Lastmod by
Marc Laporte
Rating
(0)
Description

In templates/mail/moderate_validation_mail.tpl this line is converted badly by smarty:
{$mail_machine}?user={$mail_user|escape:'url'}&pass={$mail_apass}

Smarty removes the '?' char if it's directly after a '}' (no clue why).
So I always get a bad link like this:
http://<ip>/tikiwiki/tiki-login_validate.phpuser=xxx&pass=xxxQuestion

Any solution to this? I tried to use %3F but doesn't work very well...

Solution

in templates/mail/moderate_validation_mail.tpl the "<{$mail_email}>" confused smarty.
I now moved "<>" to the tiki-register.php as $smarty->assign('mail_email',"<".$_REQUEST'email'.">");

But I haven't found the problem in smarty itself. Maybe someone should have a deeper look at smarty.



fixed in 1.9.8

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1021
Created
Wednesday 21 February, 2007 08:56:56 UTC
by Unknown
LastModif
Friday 15 January, 2010 23:02:59 UTC


Show PHP error messages