|
|
@ -67,6 +67,13 @@ isInt() { |
|
|
|
return "$?" |
|
|
|
return "$?" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Escapes ' and \ characters |
|
|
|
|
|
|
|
safeSQL(){ |
|
|
|
|
|
|
|
echo "$1" | |
|
|
|
|
|
|
|
sed 's/\\/\\\\/g' | |
|
|
|
|
|
|
|
sed "s/'/\\\'/g" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set Flags |
|
|
|
# Set Flags |
|
|
|
# ----------------------------------- |
|
|
|
# ----------------------------------- |
|
|
@ -124,12 +131,6 @@ makedb(){ |
|
|
|
echo "Still need to implement this" |
|
|
|
echo "Still need to implement this" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Escapes ' and \ characters |
|
|
|
|
|
|
|
safeSQL(){ |
|
|
|
|
|
|
|
echo "$1" | |
|
|
|
|
|
|
|
sed 's/\\/\\\\/g' | |
|
|
|
|
|
|
|
sed "s/'/\\\'/g" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Makes file names safe |
|
|
|
# Makes file names safe |
|
|
|
escapeFilename(){ |
|
|
|
escapeFilename(){ |
|
|
|