mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
security/maia: Update to patch upstream code for UTF-8
- This update includes a patch to fix upstream code that breaks UTF-8 identification and/or conversion. - Fix WEBHOST option symlink. PR: 268087 MFH: 2022Q4 (bug fixes)
This commit is contained in:
parent
d4ed9396d1
commit
8aa12b7bb4
3 changed files with 16 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= maia
|
||||
DISTVERSION= 1.0.4
|
||||
PORTREVISION= 10
|
||||
PORTREVISION= 11
|
||||
CATEGORIES= security
|
||||
|
||||
MAINTAINER= ek@purplehat.org
|
||||
|
@ -317,7 +317,9 @@ post-patch:
|
|||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${WWWDIR}/web
|
||||
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
||||
.if ${PORT_OPTIONS:MWEBHOST}
|
||||
${LN} -s ${PREFIX}/share/smarty3-${PHP_FLAVOR} ${STAGEDIR}${WWWDIR}/libs/Smarty
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}/templates
|
||||
|
|
12
security/maia/files/patch-maiad
Normal file
12
security/maia/files/patch-maiad
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- maiad.orig 2022-12-01 19:36:50 UTC
|
||||
+++ maiad
|
||||
@@ -3833,9 +3833,6 @@ sub maia_store_mail($$$$$@) {
|
||||
$subject = substr($subject, 0, 255) if length($subject) > 255;
|
||||
$subject = untaint($subject);
|
||||
$sender = substr($sender, 0, 255) if length($sender) > 255;
|
||||
- if ($document_charset ne "") {
|
||||
- from_to($contents, $document_charset, 'UTF-8');
|
||||
- }
|
||||
|
||||
if (!$oversized) {
|
||||
if ($dbtype =~ /^mysql$/si) { # MySQL
|
|
@ -72,7 +72,7 @@ sbin/maiad
|
|||
%%WWWDIR%%/images/view-raw.png
|
||||
%%WWWDIR%%/images/white-black-list.png
|
||||
%%WWWDIR%%/index.php
|
||||
%%WWWDIR%%/libs/Smarty
|
||||
%%WEBHOST%%%%WWWDIR%%/libs/Smarty
|
||||
%%WWWDIR%%/libs/jquery/images/arrowdown.gif
|
||||
%%WWWDIR%%/libs/jquery/images/arrowleft.gif
|
||||
%%WWWDIR%%/libs/jquery/images/arrowright.gif
|
||||
|
|
Loading…
Add table
Reference in a new issue