Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[xfwang] 'filename' should be basename rather than a path

  • Loading branch information...
commit 2df54760289ab0a6b721a4144cb3c6f71a257ff8 1 parent 720328a
DevTrac Project authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 script/d7
5 script/d7
View
@@ -17,14 +17,15 @@ echo "session_id = $session_id"
cookie="$session_name=$session_id"
-image_path="script/site_image.png"
+image_name="site_image.png"
+image_path="./script/${image_name}"
image_data_file="${image_path}.data"
openssl enc -base64 -in $image_path | tr -d '\n' > "$image_data_file"
image_size=`cat ${image_path}.data | wc -c | tr -d ' \n'`
-post_data="uid=$user_id&filesize=$image_size&filename=$image_path"
+post_data="uid=$user_id&filesize=$image_size&filename=$image_name"
echo
Please sign in to comment.
Something went wrong with that request. Please try again.