From f7755964e8703d66cee123a18519a07d49df0ae0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Nov 2014 01:42:48 +0100 Subject: modified for use case --- linkshorter/index.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'linkshorter/index.php') diff --git a/linkshorter/index.php b/linkshorter/index.php index 75ac9aa..1d56be5 100644 --- a/linkshorter/index.php +++ b/linkshorter/index.php @@ -2,10 +2,12 @@ require 'functions.php'; require 'db.php'; -ob_start("sanitize_output"); +//ob_start("sanitize_output"); +ob_start(); if ( $_SERVER['REQUEST_METHOD'] != 'POST'){ +/* $key = "lscache_" . md5( strtolower($_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"].$_SERVER["QUERY_STRING"])); if ( $db->exists($key) ) { header("X-Cache: Hit"); @@ -13,6 +15,7 @@ if ( $_SERVER['REQUEST_METHOD'] != 'POST'){ ob_end_flush(); exit; } +*/ ?> @@ -20,11 +23,12 @@ if ( $_SERVER['REQUEST_METHOD'] != 'POST'){