Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add escaping of js translation version #1

Closed
wants to merge 1 commit into from

Conversation

ihor-sviziev
Copy link

@ihor-sviziev ihor-sviziev commented Sep 16, 2017

As it was discussed in magento#10378 (comment) - we need to escape js translation version.

Steps to reproduce:

  1. Put following code to getTranslationFileVersion method (directly or via plugin):
return "' || alert(1) || '";
  1. Go to any page

Actual result:

  1. Alert with message 1 is shown

Expected result:

  1. Alert mustn't be shown

@ihor-sviziev
Copy link
Author

ihor-sviziev commented Sep 16, 2017

Sorry, created pull request to wrong repo

@hostep
Copy link
Owner

hostep commented Sep 16, 2017

No problem :)

hostep pushed a commit that referenced this pull request Feb 7, 2018
MAGETWO-61315: [Backport] - [GitHub] Set Product as New from Date and…
hostep pushed a commit that referenced this pull request Feb 7, 2018
MAGETWO-61315: [Backport] - [GitHub] Set Product as New from Date and…
hostep pushed a commit that referenced this pull request Mar 4, 2018
Merge magento/magento2:2.2-develop into northernco/magento2
hostep pushed a commit that referenced this pull request Mar 20, 2018
hostep pushed a commit that referenced this pull request Jun 27, 2018
hostep pushed a commit that referenced this pull request Aug 11, 2018
[Backport] Added language translation for message string
hostep pushed a commit that referenced this pull request Aug 11, 2018
[Backport] [Resolved : Styling <select> by changing less variables in Luma theme…
hostep pushed a commit that referenced this pull request Aug 15, 2018
Fixed a grammatical error on the vault tooltip
hostep pushed a commit that referenced this pull request Oct 4, 2018
[Backport] Use route ID when creating secret keys in backend menus instead of route name
hostep pushed a commit that referenced this pull request Jan 23, 2019
removes extra dot on "How to run Magento" in phpserve/README.md
hostep pushed a commit that referenced this pull request Feb 19, 2019
Add Brazilian Credit Cards Support #1
hostep pushed a commit that referenced this pull request Feb 19, 2019
hostep pushed a commit that referenced this pull request Mar 25, 2019
[Forwardport] 'Fixes-for-customer-login-page-input-field' :: On customer login page…
hostep pushed a commit that referenced this pull request Apr 3, 2019
hostep pushed a commit that referenced this pull request Apr 6, 2019
merge from magento/magento2
hostep pushed a commit that referenced this pull request Apr 6, 2019
Removed two times zlib.output_compression on
hostep pushed a commit that referenced this pull request May 4, 2019
nmalevanec pushed a commit that referenced this pull request May 10, 2019
…sh-1

Changed canonical_url to relative_url
nmalevanec pushed a commit that referenced this pull request May 10, 2019
hostep pushed a commit that referenced this pull request Jul 8, 2019
hostep pushed a commit that referenced this pull request Jul 29, 2019
hostep pushed a commit that referenced this pull request Aug 11, 2019
hostep pushed a commit that referenced this pull request Aug 11, 2019
hostep pushed a commit that referenced this pull request Sep 5, 2019
hostep pushed a commit that referenced this pull request Oct 6, 2019
hostep pushed a commit that referenced this pull request Oct 6, 2019
hostep pushed a commit that referenced this pull request Oct 26, 2019
Issue #1: Static content deploy waits 3 sec in single-job mode after finish
Fixed by moving this sleep() into if ($this->isCanBeParalleled()) { ... }

Issue #2: Static content deploy has 5 secs delay between checking if worker job finished processing.
It leads up to 5 sec time waste before next job will start.
Improved by decreasing time from 5 sec to 0.5 sec with saving log refresh rate (10*0.5 sec)

On 4 themes and 7 locales these fixes improve time of static content deploy by 10-15 secs
slavvka pushed a commit that referenced this pull request Jan 15, 2020
VladimirZaets pushed a commit that referenced this pull request Aug 11, 2020
Merge changes from origin repo
engcom-Golf pushed a commit that referenced this pull request Oct 1, 2020
hostep pushed a commit that referenced this pull request Feb 4, 2021
hostep pushed a commit that referenced this pull request Mar 30, 2021
hostep pushed a commit that referenced this pull request Jul 12, 2022
Missing section when custom role is selected
hostep pushed a commit that referenced this pull request Jan 9, 2023
…ints

magento#35535: Magento 2.4.4 Mini cart item images not showing
hostep pushed a commit that referenced this pull request Apr 24, 2023
…\Language\\AST\\FieldNode, GraphQL\\Language\\AST\\InlineFragmentNode given - Added Inline Fragment Fields
hostep pushed a commit that referenced this pull request Apr 24, 2023
…\Language\\AST\\FieldNode, GraphQL\\Language\\AST\\InlineFragmentNode given - Fixed Static Test
engcom-Echo pushed a commit that referenced this pull request Dec 26, 2023
…iven in magento/framework/Setup/Patch/PatchApplier
engcom-Echo pushed a commit that referenced this pull request Dec 26, 2023
…iven in magento/framework/Setup/Patch/PatchApplier
hostep pushed a commit that referenced this pull request Jul 18, 2024
engcom-Charlie pushed a commit that referenced this pull request Oct 25, 2024
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.

2 participants