Fixed small issue with UTF-8 characters decreasing the maximum length of inputs.

This commit is contained in:
Savetheinternet 2010-11-03 23:02:15 +11:00
parent 16b6548b4a
commit f864d5df16
2 changed files with 6 additions and 6 deletions

View File

@ -22,9 +22,9 @@
public function __construct($id, $thread, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename) { public function __construct($id, $thread, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename) {
$this->id = $id; $this->id = $id;
$this->thread = $thread; $this->thread = $thread;
$this->subject = $subject; $this->subject = utf8tohtml($subject);
$this->email = $email; $this->email = $email;
$this->name = $name; $this->name = utf8tohtml($name);
$this->trip = $trip; $this->trip = $trip;
$this->body = $body; $this->body = $body;
$this->time = $time; $this->time = $time;
@ -68,9 +68,9 @@
public $omitted = 0; public $omitted = 0;
public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename) { public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename) {
$this->id = $id; $this->id = $id;
$this->subject = $subject; $this->subject = utf8tohtml($subject);
$this->email = $email; $this->email = $email;
$this->name = $name; $this->name = utf8tohtml($name);
$this->trip = $trip; $this->trip = $trip;
$this->body = $body; $this->body = $body;
$this->time = $time; $this->time = $time;

View File

@ -67,7 +67,7 @@
} }
$post['name'] = (!empty($_POST['name'])?$_POST['name']:'Anonymous'); $post['name'] = (!empty($_POST['name'])?$_POST['name']:'Anonymous');
$post['subject'] = utf8tohtml($_POST['subject']); $post['subject'] = $_POST['subject'];
$post['email'] = utf8tohtml($_POST['email']); $post['email'] = utf8tohtml($_POST['email']);
$post['body'] = $_POST['body']; $post['body'] = $_POST['body'];
$post['password'] = $_POST['password']; $post['password'] = $_POST['password'];
@ -78,7 +78,7 @@
error(ERR_FILSIZE); error(ERR_FILSIZE);
$trip = generate_tripcode($post['name']); $trip = generate_tripcode($post['name']);
$post['name'] = utf8tohtml($trip[0]); $post['name'] = $trip[0];
$post['trip'] = (isset($trip[1])?$trip[1]:''); $post['trip'] = (isset($trip[1])?$trip[1]:'');
if($post['email'] == 'noko') { if($post['email'] == 'noko') {