Commit Graph

16 Commits

Author SHA1 Message Date
BestNa.me Labs
27cb9de939 Update result.php
Area: reCAPTCHA response check
Title: Fixes ineffective check of reCAPTCHA response
Threat level: Serious
Author: BestNa.me Labs (http://BestNa.me)
Description: 
a) Problem: In the original code the check for the reCAPTCHA response was ineffective: a short URL gets generated and inserted into the DB even when the reCAPTCHA question was not answered correctly. To reproduce the problem with the original code, please enter a destination URL, but simply leave the reCAPTCHA question unanswered, and then inspect the DB right after the error message 'The reCAPTCHA wasn't entered correctly ...' has been displayed. The short URL will show up in the DB, though. This behavior (behaviour) has been observed and described by other users before.
b) Fix: Moved the call to yourls_add_new_link (and some associated lines of code) BELOW the check of the recaptcha response.
2015-02-17 17:37:28 +01:00
Tom Slominski
f5ac64c570 Removing the left over bookmarklet code reduces spam by further 25%, say completely unscientific studies. 2014-01-06 19:34:12 +00:00
Tom Slominski
94bcee59ec Giving the results a heading 2013-12-31 00:56:00 +00:00
Tom Slominski
14f293a2e1 Final corrections to the goddamn sharing buttons... 2013-12-31 00:54:22 +00:00
Tom Slominski
06f475d075 Have a Tumblr button. I cannot deal with any more social sharing button pain :( But the Tumblr one is relatively easy to use, unlike *cough*Facebook*cough*. 2013-12-31 00:49:52 +00:00
Tom Slominski
bde1a92c19 Added a more meaningful description to the twitter sharer 2013-12-31 00:28:06 +00:00
Tom Slominski
2423d8036f Moving up some definitions to fix the bookmarklets (thanks Sam Tran!) 2013-11-24 21:35:51 +00:00
Tom Slominski
2b9ab972ce Hiding flash copy on mobile devices 2013-11-13 16:46:27 +00:00
Tom Slominski
e898da7e6c reCAPTCHA support 2013-11-02 18:19:38 +00:00
Tom Slominski
8cbc21f60f A note 2013-11-02 15:32:30 +00:00
Tom Slominski
f770cfa03e Fixing the social sharers and whipping out some padding for them 2013-11-02 14:50:39 +00:00
Tom Slominski
cf605a9ec5 I've merged some code from YOURLS, but the SATANIC bookmarklets still do not work. Ugh. 2013-11-02 00:44:41 +00:00
Tom Slominski
679dcd0961 New lines at the ends of files 2013-11-01 19:21:45 +00:00
Tom Slominski
718420690b Sorted out the results page 2013-11-01 19:19:35 +00:00
Tom Slominski
90fbc64d0a Corrected tabs and comments 2013-11-01 18:45:34 +00:00
Tom Slominski
1ee65b690d Rudimentary basic two-file structure. This should make the code more readable and easier to edit, but we'll see how we go. It's called two file since only two files here are important. I've split the form and the results page together, and the header.php and footer.php are just additional files so we don't double the code. 2013-11-01 18:15:39 +00:00