jeffrey-deng / imcoder-blog Goto Github PK
View Code? Open in Web Editor NEWJava博客
Home Page: https://imcoder.site/
Java博客
Home Page: https://imcoder.site/
keep different file names the same length of characters,
Split an album folder into multiple albums for upload a lot of images in one album without degrading performance.
file size is to small in zoom 100%,
so use 'em' to implement style same in different zoom.
Sometimes I want to put the same photo warrior in a different album, but I just want to upload a source file to develop this requirement.
Also supports user-defined local configuration for some page layouts.
Video page should add a popup modal for playing videos
Add archive pages and tab pages to help users find targeted articles
When querying articles and photos, I found that there are risks of SQL injection when querying some fields that support regular matching, resulting in user data being leaked.
Manager could push a Specific configuration to user,and let user's browser cache refresh when code is updated
A file recycle bin should be set up to prevent accidental deletion of files
As long as the login page is opened (not the login box), the login will be invalid, and it will be useless even if it is refreshed,
the "remember password" function will also be invalid, re-opening the browser will not automatically log in.
Album should support upload videos.
add remote file system interface and implement for aliyun oss.
should modify encode regex expr implement from js to java
encode implement on backstage is more elegant and make the url be more friendly.
because writing the database rules in the url will make the url very long.
It should show the rules that the user can understand.
also should add help document for user.
make image file is compressed when photo is listing, and support manager change config in backend at any time.
If someone uploads a photo, there is a small error in the direction photo to replace the uploaded photo file, because he does not want to change the display position of the photo, then you need a function to update the image source file.
The switch that has been added to the strict login mode has been turned off by default. Although the user who is not the same IP is logged in, the token that the user remembered before will not be deleted. However, if the user uses the mobile phone to access the computer at the same time, the user wants both terminals to remember passwords, which require different terminals to remember the same token.
Develop these features~
Hi @Jeffrey-deng,
Thanks for sharing the repository and it's a nice one.
I noticed one issue - the program src/main/java/site/imcoder/blog/Interceptor/LoginRequiredInterceptor.java
has the following code:
Cookie identifier_cookie = new Cookie("identifier", longUid);
identifier_cookie.setPath(cookie_path);
identifier_cookie.setSecure(cookie_secure);
identifier_cookie.setMaxAge(max_age); // max_age
Cookie credential_cookie = new Cookie("credential", token);
credential_cookie.setPath(cookie_path);
credential_cookie.setSecure(cookie_secure);
credential_cookie.setMaxAge(max_age); // max_age
response.addCookie(identifier_cookie);
response.addCookie(credential_cookie);
I think for a sensitive cookie like credentials, both the Secure
flag and the HttpOnly
flag shall be set to avoid XSS attacks through client side JavaScripts. Please consider to make the change.
Thanks,
@luchua-bc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.