Skip to content

Instantly share code, notes, and snippets.

@kbrmedia
Last active March 4, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbrmedia/287f26286b064732c930f4955a031769 to your computer and use it in GitHub Desktop.
Save kbrmedia/287f26286b064732c930f4955a031769 to your computer and use it in GitHub Desktop.
QR Code Blocked in Some Countries

Open the file includes/Short.class.php and go to line 1061 to find the code below

$api_url = "http://chart.apis.google.com/chart?chs=$size&chld=L|0&choe=UTF-8&cht=qr&chl=".urlencode((!empty($url->domain) ? $url->domain : $this->config["url"])."/{$this->action}?source=qr");	

Right after that line add

header("Location: $api_url");
exit;

That is it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment