Comment 2 for bug 1256568

Revision history for this message
Akshay Kalose (akshayproductions) wrote :

After messing around, I figured out that makePageUrl() works, so the culprit was goo_gl class. Then, after some time of experimenting again, I figured out

that aparently there was an error each time. (object(stdClass)#292 (1) { ["error_message"]=> string(15) "Invalid Captcha" })

from the json decoded curl response.

Also, this class was made in 2010, so I went to the author's website to find that his own Googl Shortner didn't work. (http://marcusnunes.com/api-goo.gl.php)

So here are the changes that I have made:

Deleted old goo_gl class

Made my own googlUrl class :)

My class can make short url and get long url's from the short url :P

(Fixed another bug) made changes to the makePageURL function because it returned with a extra /.

Ex, go to http://127.0.0.1/edit?puuid=vesuvius.sahanafoundation.org%2Fperson.101 and it would return http://127.0.0.1//edit?puuid=vesuvius.sahanafoundation.org%2Fperson.101

Problem: If you keep doing this, then it will keep generating the goo.gl's and eventually someone might get the QR code for

http://127.0.0.1//////////edit?puuid=vesuvius.sahanafoundation.org%2Fperson.101

So, I have fixed this problem in the makePageURL function.