*** SOLVED *** Fix to a space at the end of the story title is converted to a hyphen upon saving, and a query error caused by RSS Import when inserting tags with apostrophe. | Bug Reports | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
*** SOLVED *** Fix to a space at the end of the story title is converted to a hyphen upon saving, and a query error caused by RSS Import when inserting tags with apostrophe.
Avatar
redwine
Admin
Forum Posts: 328
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
1
August 12, 2018 - 5:44 pm
sp_Permalink sp_Print

This issue is brought up by @John:

"When there is a space entered or left after the story title for an article and the story is submitted, the URL shows (-) at the end. When the article is edited and the space is removed from the end of the story title, the URL corrects."

I applied a fix to it and files are available on Plikli GitHub:
https://github.com/Plikli-CMS/Plikli-CMS/commit/47e068eda807bc238ad5cb229829ef33fcb87a2e

If you want to apply the modifications manually, then check the link above.

If you want to just copy the new files (3 files) and paste them over the the old ones, then these are the links to the individual files where you can select all the content and open the relevant file in your current installation and paste it over and save.

/editlink.php
https://raw.githubusercontent.com/Plikli-CMS/Plikli-CMS/master/editlink.php

/libs/link.php
https://raw.githubusercontent.com/Plikli-CMS/Plikli-CMS/master/libs/link.php

/submit.php
https://raw.githubusercontent.com/Plikli-CMS/Plikli-CMS/master/submit.php

NOTE that the modified files also include a fix caused by RSS Import when inserting tags with apostrophe.

In Plikli CMS version 4.1.0, important fields are stripped (by JavaScript and PHP) from certain special characters. The Tags fields are stripped from any character that is not alphanumeric, underscore, hyphen and a comma.

However, when RSS Import an articles with Tags containing an apostrophe, it is causing a query error while inserting the tags. All fixed now!

Forum Timezone: Asia/Beirut

Most Users Ever Online: 19

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

john: 47

Nishant kumar: 33

Mosage: 25

Punk: 23

Martin Gold: 22

Felipe: 21

StaticMove: 13

Hiro: 13

yami: 13

Cesar: 12

Newest Members:

nathan

Mylove

Nilantha

Sild

Andrew

Strong

lingeeswari

Jon

ajuxe

COOPERMARIE

Forum Stats:

Groups: 1

Forums: 8

Topics: 111

Posts: 664

 

Member Stats:

Guest Posters: 0

Members: 130

Moderators: 0

Admins: 1

Administrators: redwine