This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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): |