TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 03, 2024, 01:10:14 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 104
  • Total: 104

Recently migrated to TP

Started by MrMike, September 09, 2023, 09:21:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

The current function replaces spaces with dashes: for backward compatibility it would be nice to keep that
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

Ok, I've added a pattern on the input field and correctly decoded the entity on display.

https://github.com/Tinyportal/TinyPortal/pull/979/files

We can repeat the pattern on any other instance we want to limit.

@rjen

Yep that will do it. Thanks

Now we still have the issue with the nam field
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

Quote from: @rjen on December 13, 2023, 01:05:28 PMNow we still have the issue with the nam field

What issue? That should be fixed if you mean the displaying with quotes.

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino


@rjen

okay, let me check... I only saw the code on my phone...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

NO quite...

when I create an articel with this a title and short name

Experts Say 'Millennials' Are Killing The Pickle Industry

It still breaks..

I cannot access the article, because this URL is generated...

https://test.fjr-club.nl/index.php?page=Experts-Say-%27Millennials%27-Are-Killing-The-Pickle-Industry
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

its the space you included that does not work... let's see if I can fix it...

this work...

pattern="[A-Za-z0-9 ]+"
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

had some issues with allowing spaces and - characters. It seems the following is better: just excluding the use of quotes...

<input type="text" id="tp_article_shortname" name="tp_article_shortname" value="'.$mg['shortname'].'" size=20 pattern="[^\'\x22]+" >
Running Latest TP on SMF2.1 at: www.fjr-club.nl