Page 1 of 1

Proftp welcome message problem

Posted: 13 Jul 2018 02:03
by 744700595
I want to reflect a problem with proftp webgui
I use proftp webgui to generate a text image welcome message. I found that the image was completely ruined and it didn't seem to correctly recognize the carriage return symbol.

Then I manually edited /var/run/proftpd/proftpd.motd. Use the same text image. It can then be displayed normally during use. I feel that this is a problem with webgui. I hope the development team has time to test it.
Thank you
11.png

Re: Proftp welcome message problem

Posted: 13 Jul 2018 08:52
by raulfg3
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?

Re: Proftp welcome message problem

Posted: 13 Jul 2018 11:20
by 744700595
raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Excuse me, my English is not good, it was translated by Google. I don't quite understand what you mean.

Re: Proftp welcome message problem

Posted: 13 Jul 2018 13:30
by ms49434
raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Explanation:
System motd and proftpd welcome message are two different settings.
Motd has been programmed to preserve tabs, line feed and escape sequences using base64 encoding.
The proftpd welcome message has never been programmed in such a way - it was never expected that it will contain more than one line.

Background:
The root cause of the lost line feed characters can be found in the config reader.
The config reader strips CR, LT and TAB from a configuration value, see xmlparse.inc.
If these characters must be preserved it is required to encode/decode the data (base64),
Changes must be applied to services_ftp.php and to the proftpd rc script.

Re: Proftp welcome message problem

Posted: 15 Jul 2018 21:54
by raulfg3
Ok thanks to add support on latest 5753: https://sourceforge.net/p/xigmanas/code ... d00f2:5752

Re: Proftp welcome message problem

Posted: 16 Jul 2018 11:05
by 744700595
raulfg3 wrote:
15 Jul 2018 21:54
Ok thanks to add support on latest 5753: https://sourceforge.net/p/xigmanas/code ... d00f2:5752
thank you for your reply. Are you saying that this patch can be solved? Or what file to replace?
I think the version I am currently using is better and I don't want to upgrade it whole. Can I patch it separately?

I haven't patched it for many years, forget how to fight it.

Re: Proftp welcome message problem

Posted: 16 Jul 2018 11:09
by raulfg3
You need to wait until a new release are post , this new release contain the patch done in latest 5753

Re: Proftp welcome message problem

Posted: 16 Jul 2018 13:19
by 744700595
This should be just a WEBGUI issue. If you can patch it, it will be fine. The upgrade requires a reboot. This is a problem

Re: Proftp welcome message problem

Posted: 16 Jul 2018 13:25
by 744700595
ms49434 wrote:
13 Jul 2018 13:30
raulfg3 wrote:
13 Jul 2018 08:52
added suport to read "LF" from 9.1.0.1.509 viewtopic.php?f=78&t=1600&p=7000&hilit=motd+LF#p7000

Perhaps is broken in new release?
Explanation:
System motd and proftpd welcome message are two different settings.
Motd has been programmed to preserve tabs, line feed and escape sequences using base64 encoding.
The proftpd welcome message has never been programmed in such a way - it was never expected that it will contain more than one line.

Background:
The root cause of the lost line feed characters can be found in the config reader.
The config reader strips CR, LT and TAB from a configuration value, see xmlparse.inc.
If these characters must be preserved it is required to encode/decode the data (base64),
Changes must be applied to services_ftp.php and to the proftpd rc script.
thanks