Closed (fixed)
Project:
Automated Logout
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2019 at 12:57 UTC
Updated:
7 Mar 2020 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ytsurkHere a patch doing it right.
Comment #3
ytsurkSorry .. missed a line.
Comment #4
ytsurkComment #5
deaom commentedHi @ytsurk, it would be nice to have some steps how to reproduce the issue so it is easier to test the solution. So without the patch the strings do not appear in the User interface translation so they are never translated. When applying the patch, which does apply, the strings are available and the correct translation is shown. About the XSS, not sure if this is the place, as the message can be entered only by a registered user, but who I am to say.
Comment #6
ytsurkThank you for testing and reviewing @DeaOm.
Yes the problem was, that the text was given to the translation service as placeholder, which does not make it show up in the translation UI and is not translatable in any way. Thus it is untranslatable.
And now it is translatable in the translation UI as soon as it showed up once in the frontend.
So - this are the steps on how to reproduce.
Regarding XSS, it's good (recommended) ((mandatory)) practice to sanitize user input! Do not trust registered users, even user 1! So this needs to go in!
Comment #8
boshtian commented