Skip to content

Removed double spaces #485

Open
Open

Description

@KorolkovAnton163

The clean function removes double spaces from image URL

$value = trim(preg_replace('/\s+/u', ' ', $value));

Example site https://www.stalker2.com/
<meta property="og:image" content="https://www.stalker2.com/user/pages/01.home/1024-576 logo.jpg">

Activity

  1. Vitorinox commented on Oct 31, 2026

    @Vitorinox
    Collaborator

    Hi @KorolkovAnton163, PR #589 should fix this: spaces inside image URLs are now kept and encoded as %20 instead of being removed.

    You can test it with composer require embed/embed:dev-fix/4.5.5. We will leave the PR open for a few days before releasing 4.5.5, so any feedback is very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions