Comments (8)
Special characters like '$' won't work as they are seen by the CLI as variables, not really sure how we can combat this but we can look into it I guess.
Thanks or posting Tom - I can however confirm that this is definitely NOT due to us switching to UTF8,
from sentora-core.
Makes total sense. Maybe use a protected server-side PHP file to do it or some sort of escaping or set the passed password in a variable it's self? Just some thoughts to kick around.
from sentora-core.
No, what I'm saying is, that the Linux console interprets the '$' character
and others as special characters on the CLI, escaping them in PHP will not
help at all as the special characters will be intercepted at the CLI and
will never make it to the PHP script behind to get escaped ;)
On 2 February 2015 at 15:50, TGates [email protected] wrote:
Makes total sense. Maybe use a protected server-side PHP file to do it or
some sort of escaping or set the passed password in a variable it's self?
Just some thoughts to kick around.—
Reply to this email directly or view it on GitHub
#109 (comment)
.
from sentora-core.
I completely see now... well, it's good to use if you can't login and need to reset pw, then make a better password once logged in. I guess this can be closed then. no need to try and hash it out.
from sentora-core.
Only when it's wrapped in double quotes will the variable be used
#!/usr/bin/env bash
PARAM='pas$word'
echo "param value will show : $PARAM"
echo 'param value will not show - $PARAM'
from sentora-core.
Try it from the CLI then Lee, I think you'll be surprised... the CLI is
still trying to use strange characters and will need an escape char!
On 2 February 2015 at 20:16, Lee Mc Kay [email protected] wrote:
Only when it's wrapped in double quotes will the variable be used
PARAM=password
echo "param value will show : $PARAM"
echo 'param value will not show - $PARAM'—
Reply to this email directly or view it on GitHub
#109 (comment)
.
from sentora-core.
oh right - PHP not BASH. : got cha
from sentora-core.
Closing this as not much we can do - except i guess wrap the parameter values in double quotes " which may work - this is however a limitation with using the CLI tools.
from sentora-core.
Related Issues (20)
- another bug, critical, remote root HOT 1
- sentora outgoing mails are bouncing HOT 1
- This project is dead? HOT 3
- [Solved] backup download error 500 HOT 3
- Debian 10 "Buster" is here HOT 9
- Ubuntu 20.04 "Focal Fossa" LTS is here HOT 8
- CentOS 8.x is here HOT 12
- Subdomain not working HOT 2
- FTP Accounts HOT 1
- Debian 11 "Bullseye" Full Freeze starts HOT 2
- Rocky Linux 8.4 is here HOT 3
- Trying to get in touch regarding a security issue HOT 3
- More illuminating web presence HOT 3
- Current Cron Tasks HOT 1
- Is sentora dead? HOT 6
- Debian 12 "Bookworm" Freeze HOT 3
- Master branch is not up-to-date and by default HOT 1
- Tags and releases problems HOT 5
- How to Migrate Plesk to Sentora? HOT 1
- can't see package limits
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 sentora-core.