Expand URL-encoding reference in .env.example
Full number-row special character table with percent codes, safe characters called out, and a note on : and / which break URL parsing. https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
This commit is contained in:
+9
-5
@@ -204,11 +204,15 @@ env_example="$HERE/.env.example"
|
||||
echo "# RTSP stream URLs — one line per camera (variable name = CAM_RTSP_<camname>)"
|
||||
echo "#"
|
||||
echo "# Use single quotes around the whole value to prevent shell interpretation."
|
||||
echo "# Special characters in the PASSWORD part of the URL must be URL-encoded:"
|
||||
echo "# @ -> %40 : -> %3A / -> %2F # -> %23"
|
||||
echo "# ! -> %21 \$ -> %24 & -> %26 % -> %25"
|
||||
echo "# + -> %2B = -> %3D space -> %20"
|
||||
echo "# Example: password p@ss!word becomes p%40ss%21word in the URL."
|
||||
echo "# Special characters in the PASSWORD must be URL-encoded (number-row reference):"
|
||||
echo "#"
|
||||
echo "# ! %21 @ %40 # %23 \$ %24 % %25 ^ %5E"
|
||||
echo "# & %26 * %2A ( %28 ) %29 - safe _ safe"
|
||||
echo "# + %2B = %3D ~ %7E \` %60 space %20"
|
||||
echo "#"
|
||||
echo "# Also critical (break URL parsing if unencoded): : %3A / %2F"
|
||||
echo "#"
|
||||
echo "# Example: password my@p\$ss:word! -> my%40p%24ss%3Aword%21"
|
||||
echo ""
|
||||
for cam in "${CAMERAS[@]}"; do
|
||||
echo "CAM_RTSP_${cam}='rtsp://admin:PASSWORD@192.168.1.XXX:554/stream1'"
|
||||
|
||||
Reference in New Issue
Block a user