php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55177
Patch fix_wrong_utf_string_cut.patch revision 2011-08-16 13:23 UTC by irker@php.net
revision 2011-08-16 05:53 UTC by irker@php.net
revision 2011-08-16 05:51 UTC by irker@php.net

Patch fix_wrong_utf_string_cut.patch for Website problem Bug #55177

Patch version 2011-08-16 05:53 UTC

Return to Bug #55177 | Download this patch
This patch is obsolete

Obsoleted by patches:

This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: irker@php.net

Index: entry/event.php
===================================================================
--- entry/event.php	(revision 314981)
+++ entry/event.php	(working copy)
@@ -21,6 +21,8 @@
 if (empty($sdesc) || empty($email) || empty($country) || empty($category) || empty($type) || empty($url))
   die("missing some parameters.");
 
+$sdesc = mb_strcut($sdesc, 0, 32);
+
 // The answer to the "spam question"
 if ($sane != 3) {
 	die("I feel for you");

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC