Developing lightweight computation at the DSG edge

Commit eb8c6514 authored by Jorge L. Florit's avatar Jorge L. Florit
Browse files

qmp-guifi: temporary solution to the problem of HTTPS URLs. Fix #341

parent cf62ebab
......@@ -41,6 +41,12 @@ get_url() {
[ $ONECLICK_CGI -eq 1 ] && { echo "ERROR: No URL specified."; exit 1; } ||
qmp_error "No URL specified. USE: '$0 get_url [${ONECLICK_URL_BASE}#####/] [FILE]'"
} || {
# TEMPORARY SOLUTION WHILE NO HTTPS SUPPORT FOR WGET
echo $1 | grep -q "^https://" 2>/dev/null
[ $? -ne 0 ] || {
[ $ONECLICK_CGI -eq 1 ] && { echo "ERROR: HTTPS URLs not supported yet."; exit 1; } ||
qmp_error "HTTPS URLs not supported yet."
}
echo $1 | grep -q "^http://" 2>/dev/null
## TO DO CHECK IF ID OR URL IS GIVEN
[ $? -ne 0 ] && {
......
......@@ -52,7 +52,7 @@ function toggle(id,state){
<br /><br />
<div id="guifidiv" style="clear:both; height:75px; ">
<strong>Specify the guifi.net URL of the device:</strong>
<strong>Specify the guifi.net HTTP URL of the device:</strong>
<input type="text" id="guifi" name="guifi" />
<input type="button" id="apply" value="Apply" onclick="option(this.form.guifi.value,'<%=key%>','apply')" style="padding:0 5px;" />
<span id="output_field" style="display:block;text-align:left;padding:10px;"></span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment