Comments (1)
The patch
--- static/js/main.js.orig 2024-03-11 17:12:37.270301908 +0000
+++ static/js/main.js 2024-03-11 18:31:04.497099056 +0000
@@ -325,7 +325,7 @@
function log_status(text, to_populate) {
console.log(text);
- status.html(text.split('\n').join('<br/>'));
+ status.html(text.replace(/&/, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').split('\n').join('</br>'));
if (to_populate && validated_form_data) {
populate_form(validated_form_data);
will fix the problem. Can't use "status.text" to replace "status.html" as we're adding "</br>"'s to the text
from webssh.
Related Issues (20)
- Meet "XSRF cookie does not match POST argument" On codesandbox.io
- SSH connections use proxies, such as HTTP, https, and socket5, which can be configured separately for each connection
- browser console always throw errors: main.js:807 Uncaught TypeError: event.data.split is not a function
- Closing worker with reason: worker recycled HOT 5
- Setting font spacing? HOT 1
- Is there a way to send referrer in upgrade header?
- 请问能不能在跳转到webssh后,自动执行一下初始化的操作?比如自动配置一些环境变量?
- is it possible to completely disable http server?
- Can i avoid log-in? I don't want to input username password passphrase everytime HOT 1
- 汉字显示乱码
- Getting Error No existing session
- Authentication Failure with OpenSSH 9: Bad authentication type HOT 1
- Closing worker {workerId} with reason: worker recycled HOT 1
- Connection to 127.0.0.1:8000 is not allowed.
- webssh登录页hostname填入外网IP时,就提示bad host key,填入localhost就可以正确登录,请问hostname为什么不能用外网IP?
- Is there a good way to auth by SSH_AUTH_SOCK(ssh agent)
- url中密码只能是base64吗? 有没有别的加密方式
- Issue with pytest 8.2.0 and tornado async task HOT 2
- webssh在外接显示屏下显示不全
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 webssh.