Comments (2)
https://tools.ietf.org/html/rfc3986#section-2.4
Implementations must not
percent-encode or decode the same string more than once, as decoding
an already decoded string might lead to misinterpreting a percent
data octet as the beginning of a percent-encoding, or vice versa in
the case of percent-encoding an already percent-encoded string.
from noderssbot.
According to the rfc, Decode should only happen once and we should not decode an unencoded url. But an unencoded url is impossible to include string like %2525
. So const isPercentEncoded = decodeURIComponent(url) !== url
is correct except x-www-urlencode
which encode space to +
instead of %20
. In other word, decode an unencoded url is an idempotent operation.
from noderssbot.
Related Issues (20)
- Regexp improve
- 请问如何增加一个容器的暴露端口
- 求助,部署在fly.io上,数据无法保存,重启项目订阅源就都没了 HOT 1
- Repeated messages for new posts HOT 3
- Got request hang up when using cache
- Handle HTTP Cache header
- PostgreSQL connection error on Heroku workaround
- RSS url to someone's Diigo bookmark collection according to a certain tag can not be detected properly HOT 1
- Heroku error HOT 1
- Bot changes feed urls to wrong ones on its own HOT 6
- 建议 - 可以添加网页预览吗? HOT 2
- rssbot 更新提醒重复 HOT 3
- How to set it? Set the RSSBOT_TOKEN environment variable or set it in config.ts HOT 1
- critical error in docker (any image newer than 092ebb) HOT 1
- Use an alternative to got HOT 2
- 使用pm2,运行错误 HOT 3
- winston throw error
- 最新版本heroku部署报错 HOT 2
- 请问,如果想自行修改推送时的消息可以做到吗? HOT 5
- heroku收费,能部署到阿里云 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noderssbot.