Update xhtml-compiler.
[htmlpurifier-web.git] / phorum.patch
blob565f3b8a42661407eec021879501200728d39292
1 Common subdirectories: phorum-original/cache and phorum/cache
2 Common subdirectories: phorum-original/docs and phorum/docs
3 Common subdirectories: phorum-original/images and phorum/images
4 Common subdirectories: phorum-original/include and phorum/include
5 Common subdirectories: phorum-original/mods and phorum/mods
6 Common subdirectories: phorum-original/portable and phorum/portable
7 Common subdirectories: phorum-original/scripts and phorum/scripts
8 Common subdirectories: phorum-original/templates and phorum/templates
9 diff -ur '--exclude=config.php' phorum-original/include/constants.php phorum/include/constants.php
10 --- phorum-original/include/constants.php 2011-09-09 11:11:49.000000002 -0400
11 +++ phorum/include/constants.php 2012-04-08 01:50:23.000000002 -0400
12 @@ -73,7 +73,7 @@
13 // If you upgrade this length, then note that you have to
14 // change the storage type of the body field in the messages
15 // table from TEXT to MEDIUMTEXT.
16 - define('MAX_MESSAGE_LENGTH', 65000);
17 + define('MAX_MESSAGE_LENGTH', 16777000);
19 /////////////////////////////////////////
20 // //
21 diff -ur '--exclude=config.php' phorum-original/include/format_functions.php phorum/include/format_functions.php
22 --- phorum-original/include/format_functions.php 2011-09-09 11:11:49.000000002 -0400
23 +++ phorum/include/format_functions.php 2012-07-30 09:50:23.000000002 -0400
24 @@ -90,6 +90,10 @@
25 // Apply Phorum's formatting rules to all messages.
26 foreach( $data as $key => $message )
28 + // ezyang: Monkeypatch unserialize meta
29 + if (!empty($message['meta']) && is_string($message['meta'])) {
30 + $data[$key]['meta'] = unserialize($message['meta']);
31 + }
32 // Normally, the message_id must be set, since we should be handling
33 // message data. It might not be set however, because sometimes
34 // the message formatting is called using some fake message data
35 Only in phorum/include/posting: check_integrity.php.orig