Skip to content

Instantly share code, notes, and snippets.

<?php
require_once 'PHPUnit/Framework.php';
require_once 'untaint.php';
class IntTest extends PHPUnit_Framework_TestCase {
public function testValidInt() {
$data = array('foo' => 1, 'bar' => -9999999999);
$values = Untaint::check(array('foo'=>UNTAINT_INT, 'bar'=>UNTAINT_INT), $data);
#encoding: utf-8
import urllib
from django.db import connection
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import render_to_response
def generate_ticket_pdf_url(purchase_id):