Und bekam das als Antwort:
Code: Alles auswählen
C:\Meine Webprojekte>patch -p1 -i phpBB-2.0.20_to_2.0.21.patch
patching file admin/admin_ranks.php
patching file admin/admin_smilies.php
patching file admin/admin_styles.php
patching file admin/admin_words.php
patching file common.php
patching file includes/functions.php
Hunk #2 succeeded at 178 (offset 10 lines).
Hunk #3 succeeded at 319 (offset 10 lines).
Hunk #4 succeeded at 339 (offset 10 lines).
Hunk #5 succeeded at 452 (offset 10 lines).
Hunk #6 succeeded at 469 (offset 10 lines).
Hunk #7 succeeded at 480 (offset 10 lines).
patching file includes/functions_post.php
Hunk #2 FAILED at 61.
1 out of 3 hunks FAILED -- saving rejects to file includes/functions_post.php.rej
patching file includes/sessions.php
patching file includes/usercp_avatar.php
patching file includes/usercp_confirm.php
patching file includes/usercp_register.php
patching file login.php
patching file privmsg.php
patching file profile.php
patching file search.php
patching file viewtopic.php
Inhalt der functions_post.php.rej:
Code: Alles auswählen
***************
*** 61,70 ****
foreach ($message_split as $part)
{
$tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));
! $message .= htmlspecialchars($part) . clean_html($tag);
}
$message = addslashes($message);
}
else
{
--- 61,71 ----
foreach ($message_split as $part)
{
$tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));
! $message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag);
}
$message = addslashes($message);
+ $message = str_replace('"', '\"', $message);
}
else
{