Skip to content

The script duplicates three chars at the end #1

@elvisef

Description

@elvisef

Let's say we have something like this:

a:1:{s:5:"content";s:97:"<h2>A little testing there</h2>
<ul>
<li>śm„ć”ń</li>
<li>am 7:00 - 4:00 pm</li>
</ul>";}

As per bytes it's 92 long for UTF-8.

The script indeed fixes the string but...

Why does the script will turn "97" into "92" but... everytime it fixes the script, it adds ";) part at the end of the whole string, so it looks like this:

a:1:{s:5:"content";s:92:"<h2>A little testing there</h2>
<ul>
<li>śm„ć”ń</li>
<li>am 7:00 - 4:00 pm</li>
</ul>";}";}

So it duplicates ";}.

How to fix this problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions