Skip to content

[4] Fix for 37859. mod_feed. inline style and nonces.#37873

Closed
ReLater wants to merge 1 commit intojoomla:4.1-devfrom
ReLater:patch-4
Closed

[4] Fix for 37859. mod_feed. inline style and nonces.#37873
ReLater wants to merge 1 commit intojoomla:4.1-devfrom
ReLater:patch-4

Conversation

@ReLater
Copy link
Contributor

@ReLater ReLater commented May 23, 2022

Fixes #37859

Testing Instructions

See opening post of issue #37859

Expected result AFTER applying this Pull Request

Feed output right aligned.

@ChristineWk
Copy link

I have tested this item ✅ successfully on ad83e0b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37873.

@ReLater ReLater closed this May 24, 2022
@HLeithner HLeithner reopened this May 24, 2022
@joomla joomla deleted a comment from ReLater May 24, 2022
@drmenzelit
Copy link
Contributor

Since modules can be loaded multiple times on a page (on a position and via loadmodule on an article) we should not have an id on the module. Please have a look a this very long discussion: #30716
I know, mod_custom has still an id in the code, but that should be fixed too..

@brianteeman
Copy link
Contributor

@drmenzelit you have misunderstood that discussion

@drmenzelit
Copy link
Contributor

The point at the end is that if the module have an id and you are loading the module twice, you will have duplicate ids in the code

->addInlineStyle('#' . $modId . '{direction: ' . ($rssrtl ? 'rtl' :'ltr') . '};');
?>
<div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>;" class="text-<?php echo $rssrtl ? 'right' : 'left'; ?> feed">
<div class="text-<?php echo $rssrtl ? 'right' : 'left'; ?> feed" id="<?php echo $modId; ?>">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need a class for it, and just switch .direction-ltr, .direction-rtl,
Or just use class with ID, then: '.' . $modId instead of '#' . $modId

@ReLater ReLater closed this Jun 19, 2022
@ReLater ReLater deleted the patch-4 branch June 19, 2022 17:46
@laoneo
Copy link
Member

laoneo commented Jun 19, 2022

Why did you close?

@ReLater
Copy link
Contributor Author

ReLater commented Jun 19, 2022

Because it was open for 2 weeks now and I couldn't see any PR to my branch or a suggestion to add the wanted changes by click.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[4.1] mod_feed. Inline CSS style not working when using Content-Security-Policy with Nonces

8 participants

Comments