Announcement

#1 2015-12-30 21:19:05

ysiedner
Member
2015-12-30
2

Incorrect URL in registration email.

Hello/Hi/Greetings,

When a registration email is sent to a new user the site url in the email is the current url I used to get to the site.  Not the web address of the web server. For example: If I connect the the server from home I just use the DNS setting and go to "mail:photos"  The actual website is mail.siedner.com.  The email has mai/photos.

Piwigo version: 2.7.4
PHP version: 5.6.116
MySQL version: 5.5.5-10.0.21-MariaDB [2015-12-30 15:17:20]
Piwigo URL: http://mail.siedner.com/photos

Offline

 

#2 2015-12-30 22:57:43

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Incorrect URL in registration email.

Well... of course. The script has no way to know what is the public address if you access from another one.

Offline

 

#3 2015-12-31 02:11:31

ysiedner
Member
2015-12-30
2

Re: Incorrect URL in registration email.

How about an option to substitute a user defined value on line 65 0f  piwigo/include/functions_url.inc.php
This looks like
$url .= $_SERVER['HTTP_HOST'];
I have modified this for my website but would prefer to be able to supply a value without having to modify the code.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact