Comments (5)
在讨论串里面点头像进中文用户名用户界面,目前默认不开新页面有时候能成功进入,但是有空格又不行。这里可能有另一个代码路线,也应该处理一下。(指在页面产生的url也要先编码好)
from flarum.
似乎英文标签如果有空格也有这个问题。应该如果能识别%20
就能解决了
from flarum.
按最新的release,似乎也有人提到utf-8的问题,主要开发人员讲的是本地临时修改一点点应该不难,可以在主仓库开issue。
按我的理解应该主要改一下core/src/Http
里面的东西就可以了(如果后续处理不管http不允许的字符,这里字符串改对应该就可以了?)?
(更好的当然是在每个需要的模块去改。。。)
from flarum.
具体实际在数据库查询的字符串如图:
https://forum.nepfan.club/assets/files/2019-12-03/1575371941-530726-en-space.png
https://forum.nepfan.club/assets/files/2019-12-03/1575371964-632641-cjk-string.png
from flarum.
用户名url的问题似乎可以在src/Api//Controller/ShowUserController.php
里面的
protected function data(ServerRequestInterface $request, Document $document)
修改
if (! is_numeric($id)) {
$id = $this->users->getIdForUsername($id);
}
为
if (! is_numeric($id)) {
$id = $this->users->getIdForUsername(urldecode($id));
}
解决
from flarum.
Related Issues (16)
- 界面设计
- 这个框架支持推送吗 HOT 3
- flarum中文版还更新吗 HOT 2
- 访问你们的论坛出现问题 HOT 1
- 很久都没有更新了 HOT 1
- 有没有私信功能 HOT 2
- https://flarum.org.cn/ 证书过期了 HOT 1
- 请问中文论坛还启用吗? HOT 3
- Flarum 开发路线图
- Flarum v0.1.0 开发路线图 HOT 17
- 请问何时支持PHP7? HOT 1
- nginx.conf配置问题 HOT 2
- 配置stmp(gmail)发送邮件 HOT 3
- flarum api的参数是什么 HOT 1
- Flarum \ Core \ Migration \ ChangeAccessTokensColumns不存在
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 flarum.