Coder Social home page Coder Social logo

Comments (8)

allebb avatar allebb commented on May 30, 2024

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.

TGates71 avatar TGates71 commented on May 30, 2024

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.

allebb avatar allebb commented on May 30, 2024

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.

TGates71 avatar TGates71 commented on May 30, 2024

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.

trojanspike avatar trojanspike commented on May 30, 2024

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.

allebb avatar allebb commented on May 30, 2024

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.

trojanspike avatar trojanspike commented on May 30, 2024

oh right - PHP not BASH. : got cha

from sentora-core.

allebb avatar allebb commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.