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

Fixed invalid CSS, bumped stylus (take 2) #755

Closed
wants to merge 2 commits into from

Conversation

nyurik
Copy link

@nyurik nyurik commented Nov 19, 2015

Rebased and updated version of the #712

"highlight-color += 10%" in context-menu.styl produces
an invalid color entry in CSS
Added main.css to avoid requiring write access to the node_modules dir in production

Yuri Astrakhan added 2 commits November 19, 2015 23:59
"highlight-color += 10%" in context-menu.styl produces
an invalid color entry in CSS
As described in Automattic#713 - Automattic#713

node generates main.css out of the styles files on demand. This might be convenient for many scenarios, but this is a big security issue because node must have write access to its own code directory -- thus some bug might allow attacker to overwrite ones own code. IMO, Kue should include main.css in the repository, so that a locked-down server without write access wouldn't break it.

To regenerate main.css, simply delete it locally and run the code that shows kue site. Once you navigate to it in a browser, the main.css will be regenerated, and can be updated in git.
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.

1 participant