Jump to content
schwarzdesign

Page tree: Pages containing "<=" in the title get cut off (Core bug?)

Recommended Posts

I have a curious situation with the page tree inside the ProcessWire Admin (UI Kit Theme). I have a page containing the string "<=" (without quotes), which causes the page title displayed in the page tree to be cut off. It only happens with exactly that directly beside each other. Out of curiosity, I tested both ">=" and "=>", those work fine.

Attached are two screenshots showing the bug. If I put a space between the two characters, it works fine.

Is this possibly a core bug? I had a quick look at the ProcessPageList module but didn't find anything related to this ...

with-space.png

without-space.png

Share this post


Link to post
Share on other sites

Thanks @BitPoet!

In that case I would suggest simply calling strip_tags after htmlspecialchars, since strip_tags shouldn't remove the <= if it's properly entity encoded.

@ryan Can you take a look? Should I open an issue on Github for this?

Share this post


Link to post
Share on other sites
2 hours ago, schwarzdesign said:

Can you take a look? Should I open an issue on Github for this?

YES! 🙂

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...