-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Showing version number cause security concern #1873
Comments
In copyright: false Will not show copyright in footer, included NexT version too. |
@ivan-nginx This will hide the whole copyright footer. Let me explain it in the other way: I believe showing version number of the theme does not help either the owner of the blog, nor the visitor of the blog. Showing the link to the theme, on the other hand, help the visitor of the blog to find this theme. The only case one want to know the version number is the owner of the blog try to fix a problem in the theme, which can be done by looking at the json since he already has the source of the theme on the build machine. In conclusion, showing version number in the footer is rather useless. |
Two ways to expand this feature:
What u think? |
May I ask why we want it to be visible to bots? |
I don't want to make visible version for bots and this not actually for bots. I added version vision to fast resolve any issues, because peoples sometimes don't know wich version they use and create issues on old/wrong versions, for example. About JSON version — it can be used by any JS files included in Also, as a footer labels we talking here, need to add #1853 to footer copyright too and make all this things separated. Can u do this changes and create pull request? For example, as is see this options: -# Specify the date when the site was setup
-#since: 2015
-# icon between year and author @Footer
-authoricon: heart
-# Footer `powered-by` and `theme-info` copyright
-copyright: true
+footer:
+ # Specify the date when the site was setup.
+ #since: 2015
+ # Icon between year and copyright info.
+ icon: heart
+ # Copyright info about author or site [author | site].
+ copyright: author
+ # Hexo link (Powered by Hexo).
+ powered: true
+ # Theme & scheme info link (Theme - NexT.scheme).
+ theme: true
+ # NexT version info (vX.X.X).
+ version: true
+ #custom_text: |
Will take a look, doesn't seem very complex. Please assign the issues to me. |
I compared whatever in the @ivan-nginx are you refering to |
Yep, i write it in comments directly. Need just do it, it's not too hard i think. Just switches and options, that's easy. |
This pending removal option does not appear to be in master, will omit instead. |
It is unclear to me how this option should work:
So I simply ignored it. |
Mean here: © 2016 — 2017 Ivan.Nginx will be replaced by For example, i want to show Or if i want to show author name (Ivan.Nginx) by how is default, i define there: |
@ivan-nginx this option seemed to be very ambiguous? |
And if try to parse |
How about this: We make this option optional, if supplied, we consider it a |
Or like that, yep. Seems good too. + # If value not defined, will be used `author` from Hexo main config.
+ copyright: |
@ivan-nginx done. |
@Haocen well done! I'll check it later and make some changes (custom text, for example) and after that PR will merged. Good job and thank's for doing impact in NexT theme! |
Merged #1886 with some improvements. |
I agree and want to create new issue
Expected behavior
Do not show theme version in footer.
Actual behavior
Showing theme version in footer.
Steps to reproduce the behavior
NexT Information
NexT Version:
NexT Scheme:
Other Information
Although the site is static, sophisticate attack can still be used to inject malicious scripts if there is a bug in certain version of the theme.
The text was updated successfully, but these errors were encountered: