Skip to content

Directives Are Not Encoded/Decoded Correctly #24

@sprankhub

Description

@sprankhub
  • Create a static block with the identifier test_block in two store views store A and store B and insert a skin directive. Example:

      <p><img alt="" src="{{skin url="images/img.png"}}" /></p>
    
  • Go to the edit page of the static block. You see two text areas / WYSIWYG editors.

  • Disable the WYSIWYG editor for the static block of store A.

  • Click save.

  • Check the content in the database:

      SELECT * FROM `cms_block` WHERE `identifier` = 'test_block';
    

Expected:
The content in the database is stored correctly for store A and store B.

<p><img alt="" src="{{skin url="images/img.png"}}" /></p>

Actual:
The content in the database is stored encoded for store B.

<p><img alt="" src="http://magento.local/index.php/customadmin/cms_wysiwyg/directive/___directive/e3tza2luIHVybD0iaW1hZ2VzL2ltZy5wbmcifX0,/key/2cbf090a2fafbc2b9457a0f93ebcb220/" /></p>

This of course leads to a broken image in the frontend.

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