quando un typo ti fa impazzire...

Perchè in jolie puoi usare variabili non definite??
dep tipo:
varA = "das" + vara + "asd";
lo si nota il typo? NO E NON DA ERRORE... grr...

Signed-off-by: Luca Fulchir <luca@fulchir.it>
parent 1d4223e9
......@@ -4,7 +4,7 @@ type OAuth1Init:void {
.location :string
.method :string
.consumer_key :string
.secret :string
.secret? :string
}
interface OAuth1Interface {
......
......@@ -27,6 +27,9 @@ scope (error_handler) {
// a little too much as a nonce, but it's easier this way :p
createSecureToken@SecurityUtils(void)(oauth_nonce);
oauth_nonce = "5ae8bce2-6be6-4376-920a-d3433c30f141";
tmp_timestamp = "1365968926";
toSort.item[0] = "oauth_signature_method=HMAC-SHA1";
toSort.item[1] = "oauth_timestamp=" + tmp_timestamp;
toSort.item[2] = "oauth_nonce=" + oauth_nonce;
......@@ -45,9 +48,9 @@ scope (error_handler) {
encode@URLEncoder (toEncode) (encodedLocation);
toHash.secret = "";
if ( is_defined(where.secret))
if (is_defined(where.secret))
toHash.secret = where.secret;
toHash.secret = tohash.secret + "&";
toHash.secret = toHash.secret + "&";
toHash.data = where.method + "&" + encodedLocation + "&";
tmp = "";
for (i = 0, i < count, i++) {
......@@ -62,7 +65,7 @@ scope (error_handler) {
toEncode.input = tmpSignature;
encode@URLEncoder (toEncode) (signature);
// println@Console(">>>>>" + toHash.data + ">>>>" + signature) ();
println@Console(">>>>>" + toHash.data + ">>>>" + signature) ();
postString = "OAuth " +
"oauth_consumer_key=\"" + where.consumer_key + "\"," +
......
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