Simple Machines Community Forum

SMF Development => Bug Reports => Topic started by: Ramón Cutanda on September 08, 2022, 01:48:21 PM

Title: "HTML tags are not allowed" when trying to update a profile
Post by: Ramón Cutanda on September 08, 2022, 01:48:21 PM
Hi:

When trying to update or add information into any of the fields in the profile of a user (myself included) I get the following error:

The following errors occurred when trying to save your profile
HTML tags are not allowed


I can replicate this error with fresh SMF 2.1.2 files (but using my previous database).

Any help will be greatly appreciated. Thank you.

Kind regards.

UPDATE: I have just registered a new test user and can change its fields without errors. I have tried to compare the data registered in the MySQL database of my user and the new user and I am completely unable to find anything weird. In any case, in my profile there is no HTML whatsoever.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Diego Andrés on September 08, 2022, 06:58:30 PM
It will be fixed in 2.1.3, assuming it's the same error as this one: https://github.com/SimpleMachines/SMF/issues/7465
PR: https://github.com/SimpleMachines/SMF/pull/7473
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Doug Heffernan on September 09, 2022, 06:02:40 AM
Yes, it seems to be the same issue as far as I can tell. I am marking this as solved. @Ramón Cutanda please feel free to mark it not solved if it is not the same issue.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Ramón Cutanda on September 24, 2022, 04:10:32 AM
Hello again:

I have been so busy that I have not been able to actually try the proposed solution until today. I can confirm it works. Thank you!

https://github.com/SimpleMachines/SMF/pull/7473/files/d43828035c67c070ded9106326a2a20f3bf18f6c
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Steve on September 24, 2022, 05:32:06 AM
Thank you for letting us know. :)
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: a10 on December 16, 2022, 05:07:23 PM
Am also encountering this error (here on the smf forum). Simple plain text, no html.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Diego Andrés on December 16, 2022, 05:22:14 PM
Ramon confirmed the fix worked and was included in 2.1.3.
Are you seeing the exact same issue after updating?
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: a10 on December 16, 2022, 06:15:02 PM
^^^ it's here on the smf forum.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: lntit on December 26, 2022, 10:55:28 AM
Can confirm it. Just enter a word with an apostrophe in it and you'll get that issue even here. I've got several PM and stuff by our members because of that.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: shawnb61 on December 26, 2022, 11:48:16 AM
Issue confirmed:
https://github.com/SimpleMachines/SMF/issues/7660

It appears to be specific to:
 - Custom profile fields that have no regex or other edit
 - The single & double quote characters

I believe the previous fix dealt with other special non-ASCII characters.  But we still have a problem with quotes.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: a10 on May 04, 2023, 02:18:59 PM
Just a note that am still encountering the 'HTML tags are not allowed'in 2.1.4 (here), = impossible to change signature.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: shawnb61 on May 04, 2023, 02:20:57 PM
Correct, it's flagged for 2.1.5.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Steve on May 04, 2023, 05:21:28 PM
Why not 2.1.4?
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: shawnb61 on May 04, 2023, 07:43:34 PM
Didn't have time!
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Steve on May 05, 2023, 06:48:31 AM
Are you trying to say you have a real life outside SMF?  :o  :P
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Hippolyta on January 28, 2024, 03:42:59 AM
Just experienced this on my forum, and there is no HTML, no special characters in the profile that we are trying to update. It just won't.
Title: Re: "HTML tags are not allowed" when trying to update a profile
Post by: Kindred on January 28, 2024, 08:45:34 AM
Quote from: shawnb61 on May 04, 2023, 02:20:57 PMCorrect, it's flagged for 2.1.5.