- selectAuthor($entry['authorid'])); ?>
+ selectAuthor($entry['authorid'])) : htmlspecialchars($this->selectAuthor($entry['authorid']), ENT_COMPAT, LANG_CHARSET)); ?>
|
$select_desc) {
foreach ($pages as $page) {
if ($this->checkPageUser($page['authorid'])) {
echo ' ';
+ echo str_repeat(' ', $page['depth']) . (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET)) . '';
}
}
}
@@ -3098,7 +3098,7 @@ foreach($select AS $select_value => $select_desc) {
if ($this->selected()) {
$te = $this->get_static('title_element');
if (!empty($te)) {
- $serendipity['head_title'] = htmlspecialchars($te);
+ $serendipity['head_title'] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($te) : htmlspecialchars($te, ENT_COMPAT, LANG_CHARSET));
$serendipity['head_subtitle'] ='';
} else {
$serendipity['head_title'] = $this->get_static('headline');
@@ -3108,8 +3108,8 @@ foreach($select AS $select_value => $select_desc) {
break;
case 'frontend_header':
- $md = htmlspecialchars($this->get_static('meta_description'));
- $mk = htmlspecialchars($this->get_static('meta_keywords'));
+ $md = (function_exists('serendipity_specialchars') ? serendipity_specialchars($this->get_static('meta_description')) : htmlspecialchars($this->get_static('meta_description'), ENT_COMPAT, LANG_CHARSET));
+ $mk = (function_exists('serendipity_specialchars') ? serendipity_specialchars($this->get_static('meta_keywords')) : htmlspecialchars($this->get_static('meta_keywords'), ENT_COMPAT, LANG_CHARSET));
if (!empty($md))
{
echo ' ' . "\n";
diff --git a/serendipity_event_staticpage/serendipity_plugin_staticpage.php b/serendipity_event_staticpage/serendipity_plugin_staticpage.php
index bf70dc5f..acb7f762 100644
--- a/serendipity_event_staticpage/serendipity_plugin_staticpage.php
+++ b/serendipity_event_staticpage/serendipity_plugin_staticpage.php
@@ -24,7 +24,7 @@ class serendipity_plugin_staticpage extends serendipity_plugin {
$propbag->add('description', PLUGIN_STATICPAGELIST_NAME_DESC);
$propbag->add('author', "Rob Antonishen, Falk Doering, Ian (Timbalu)");
$propbag->add('stackable', true);
- $propbag->add('version', '1.19');
+ $propbag->add('version', '1.19.1');
$propbag->add('configuration', array(
'title',
'limit',
@@ -187,9 +187,9 @@ class serendipity_plugin_staticpage extends serendipity_plugin {
$str .= 'fd_' . $fdid . '.add('
. $value['id'] . ','
. $value['parent_id'] . ','
- . '"' . htmlspecialchars((empty($value['headline']) ? $value['pagetitle'] : $value['headline'])) . '",'
- . '"' . htmlspecialchars($value['permalink']) . '",'
- . '"' . htmlspecialchars($value['pagetitle']) .'",'
+ . '"' . (function_exists('serendipity_specialchars') ? serendipity_specialchars((empty($value['headline']) ? $value['pagetitle'] : $value['headline'])) : htmlspecialchars((empty($value['headline']) ? $value['pagetitle'] : $value['headline']), ENT_COMPAT, LANG_CHARSET)) . '",'
+ . '"' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($value['permalink']) : htmlspecialchars($value['permalink'], ENT_COMPAT, LANG_CHARSET)) . '",'
+ . '"' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($value['pagetitle']) : htmlspecialchars($value['pagetitle'], ENT_COMPAT, LANG_CHARSET)) .'",'
. '"",'
. '"",'
. '"",'
@@ -295,10 +295,10 @@ class serendipity_plugin_staticpage extends serendipity_plugin {
/* smartify the staticpage sidebar plugin */
$content[] = array(
'id' => $page['id'],
- 'headline' => (!empty($page['headline']) ? htmlspecialchars($page['headline']) : htmlspecialchars($page['pagetitle'])),
+ 'headline' => (!empty($page['headline']) ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['headline']) : htmlspecialchars($page['headline'], ENT_COMPAT, LANG_CHARSET)) : (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET))),
'parent_id' => $page['parent_id'],
'permalink' => (!empty($page['permalink']) ? $page['permalink'] : NULL),
- 'pagetitle' => (!empty($page['permalink']) ? htmlspecialchars($page['pagetitle']) : NULL),
+ 'pagetitle' => (!empty($page['permalink']) ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET)) : NULL),
'is_startpage' => $page['is_startpage'],
'depth' => $page['depth']*10
);
@@ -307,13 +307,13 @@ class serendipity_plugin_staticpage extends serendipity_plugin {
? sprintf(
"%s \n",
$page['permalink'],
- htmlspecialchars($page['pagetitle']),
+ (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET)),
$page['depth']*10,
- (!empty($page['headline']) ? htmlspecialchars($page['headline']) : htmlspecialchars($page['pagetitle'])))
+ (!empty($page['headline']) ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['headline']) : htmlspecialchars($page['headline'], ENT_COMPAT, LANG_CHARSET)) : (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET))))
: sprintf(
"%s ",
$page['depth']*10,
- (!empty($page['headline']) ? htmlspecialchars($page['headline']) : htmlspecialchars($page['pagetitle']))));
+ (!empty($page['headline']) ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['headline']) : htmlspecialchars($page['headline'], ENT_COMPAT, LANG_CHARSET)) : (function_exists('serendipity_specialchars') ? serendipity_specialchars($page['pagetitle']) : htmlspecialchars($page['pagetitle'], ENT_COMPAT, LANG_CHARSET)))));
}
}
}
diff --git a/serendipity_event_suggest/serendipity_event_suggest.php b/serendipity_event_suggest/serendipity_event_suggest.php
index 6aeb7220..d53138cf 100644
--- a/serendipity_event_suggest/serendipity_event_suggest.php
+++ b/serendipity_event_suggest/serendipity_event_suggest.php
@@ -31,7 +31,7 @@ class serendipity_event_suggest extends serendipity_event {
));
$propbag->add('configuration', array('permalink', 'pagetitle', 'authorid', 'email'));
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '0.11');
+ $propbag->add('version', '0.11.1');
$propbag->add('groups', array('FRONTEND_FEATURES'));
$propbag->add('requirements', array(
'serendipity' => '0.9',
@@ -237,10 +237,10 @@ class serendipity_event_suggest extends serendipity_event {
$res = serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}suggestmails WHERE validation = '" . serendipity_db_escape_string($_REQUEST['suggestkey']) . "'", true, 'assoc');
if (!is_array($res) || $res['validation'] != $_REQUEST['suggestkey']) {
$validation_error = true;
- $validation_error_code = htmlspecialchars($_REQUEST['suggestkey']);
+ $validation_error_code = (function_exists('serendipity_specialchars') ? serendipity_specialchars($_REQUEST['suggestkey']) : htmlspecialchars($_REQUEST['suggestkey'], ENT_COMPAT, LANG_CHARSET));
} else {
$validation_success = true;
- $validation_error_code = htmlspecialchars($_REQUEST['suggestkey']);
+ $validation_error_code = (function_exists('serendipity_specialchars') ? serendipity_specialchars($_REQUEST['suggestkey']) : htmlspecialchars($_REQUEST['suggestkey'], ENT_COMPAT, LANG_CHARSET));
serendipity_db_query("UPDATE {$serendipity['dbPrefix']}suggestmails SET validation = '' WHERE id = " . (int)$res['id']);
$entry = array(
@@ -272,11 +272,11 @@ class serendipity_event_suggest extends serendipity_event {
'suggest_backend' => $metaout,
'suggest_action' => $serendipity['baseURL'] . $serendipity['indexFile'],
'suggest_sname' => $serendipity['GET']['subpage'],
- 'suggest_name' => htmlspecialchars($serendipity['POST']['name']),
- 'suggest_url' => htmlspecialchars($serendipity['POST']['url']),
- 'suggest_email' => htmlspecialchars($serendipity['POST']['email']),
- 'suggest_entry_title' => htmlspecialchars($serendipity['POST']['entry_title']),
- 'suggest_data' => htmlspecialchars($serendipity['POST']['comment']),
+ 'suggest_name' => (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['name']) : htmlspecialchars($serendipity['POST']['name'], ENT_COMPAT, LANG_CHARSET)),
+ 'suggest_url' => (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['url']) : htmlspecialchars($serendipity['POST']['url'], ENT_COMPAT, LANG_CHARSET)),
+ 'suggest_email' => (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['email']) : htmlspecialchars($serendipity['POST']['email'], ENT_COMPAT, LANG_CHARSET)),
+ 'suggest_entry_title' => (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['entry_title']) : htmlspecialchars($serendipity['POST']['entry_title'], ENT_COMPAT, LANG_CHARSET)),
+ 'suggest_data' => (function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['POST']['comment']) : htmlspecialchars($serendipity['POST']['comment'], ENT_COMPAT, LANG_CHARSET)),
'comments_messagestack' => $serendipity['messagestack']['comments'],
'suggest_validation_error' => $validation_error,
'suggest_validation_success' => $validation_success,
@@ -407,7 +407,7 @@ class serendipity_event_suggest extends serendipity_event {
add('stackable', false);
$propbag->add('author', 'Malte Paskuda');
$propbag->add('license', 'GPL');
- $propbag->add('version', '0.7');
+ $propbag->add('version', '0.7.1');
$propbag->add('requirements', array(
'serendipity' => '0.8'
));
@@ -190,13 +190,13 @@ class serendipity_event_template_editor extends serendipity_event {
}
if (isset($serendipity['GET']['message'])) {
- echo ''.htmlspecialchars($serendipity['GET']['message']).' ';
+ echo ''.(function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['GET']['message']) : htmlspecialchars($serendipity['GET']['message'], ENT_COMPAT, LANG_CHARSET)).' ';
}
if (isset($serendipity['GET']['success'])) {
- echo ''.htmlspecialchars($serendipity['GET']['success']).' ';
+ echo ''.(function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['GET']['success']) : htmlspecialchars($serendipity['GET']['success'], ENT_COMPAT, LANG_CHARSET)).' ';
}
if (isset($serendipity['GET']['error'])) {
- echo ''.htmlspecialchars($serendipity['GET']['error']).' ';
+ echo ''.(function_exists('serendipity_specialchars') ? serendipity_specialchars($serendipity['GET']['error']) : htmlspecialchars($serendipity['GET']['error'], ENT_COMPAT, LANG_CHARSET)).' ';
}
@@ -316,7 +316,7 @@ class serendipity_event_template_editor extends serendipity_event {
echo ''.$heading.'
';
@@ -471,8 +471,8 @@ class serendipity_event_template_editor extends serendipity_event {
//Now that the fork is created we need to set it instantly
//but only if copying succeeded
if (is_dir($template_path . $fork_template)) {
- $themeInfo = serendipity_fetchTemplateInfo(htmlspecialchars($fork_template));
- serendipity_set_config_var('template', htmlspecialchars($fork_template));
+ $themeInfo = serendipity_fetchTemplateInfo((function_exists('serendipity_specialchars') ? serendipity_specialchars($fork_template) : htmlspecialchars($fork_template, ENT_COMPAT, LANG_CHARSET)));
+ serendipity_set_config_var('template', (function_exists('serendipity_specialchars') ? serendipity_specialchars($fork_template) : htmlspecialchars($fork_template, ENT_COMPAT, LANG_CHARSET)));
serendipity_set_config_var('template_engine', isset($themeInfo['engine']) ? $themeInfo['engine'] : 'default');
}
} else {
diff --git a/serendipity_event_textlinkads/serendipity_event_textlinkads.php b/serendipity_event_textlinkads/serendipity_event_textlinkads.php
index a94445eb..384a490d 100644
--- a/serendipity_event_textlinkads/serendipity_event_textlinkads.php
+++ b/serendipity_event_textlinkads/serendipity_event_textlinkads.php
@@ -30,7 +30,7 @@ class serendipity_event_textlinkads extends serendipity_event
'php' => '4.1.0'
));
$propbag->add('groups', array('FRONTEND_EXTERNAL_SERVICES'));
- $propbag->add('version', '0.12');
+ $propbag->add('version', '0.12.1');
$propbag->add('configuration', array('htmlid', 'xmlfilename'));
$propbag->add('event_hooks', array(
'css' => true,
@@ -211,7 +211,7 @@ class serendipity_event_textlinkads extends serendipity_event
$basedir = dirname(__FILE__) . '/';
if (!is_dir($basedir . $params['dir'])) {
- echo __FUNCTION__ .": dir '{$basedir}" . htmlspecialchars($params['dir']) . " does not exist";
+ echo __FUNCTION__ .": dir '{$basedir}" . (function_exists('serendipity_specialchars') ? serendipity_specialchars($params['dir']) : htmlspecialchars($params['dir'], ENT_COMPAT, LANG_CHARSET)) . " does not exist";
return;
}
diff --git a/serendipity_event_thumbnails/serendipity_event_thumbnails.php b/serendipity_event_thumbnails/serendipity_event_thumbnails.php
index bf24f6c9..c8a7efe0 100644
--- a/serendipity_event_thumbnails/serendipity_event_thumbnails.php
+++ b/serendipity_event_thumbnails/serendipity_event_thumbnails.php
@@ -25,7 +25,7 @@ class serendipity_event_thumbnails extends serendipity_event {
$propbag->add('configuration', array('number'));
$propbag->add('stackable', false);
$propbag->add('author', 'Cameron MacFarland');
- $propbag->add('version', '1.4');
+ $propbag->add('version', '1.4.1');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@@ -119,7 +119,7 @@ class serendipity_event_thumbnails extends serendipity_event {
$thumbsize = @getimagesize($serendipity['serendipityPath'] . $serendipity['uploadPath'] . $thumbbasename);
}
- echo '';
+ echo '';
if (isset($photo)) {
echo ' true
));
$propbag->add('author', 'Steven Tonnesen');
- $propbag->add('version', '1.24');
+ $propbag->add('version', '1.24.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -1302,9 +1302,9 @@ class serendipity_event_todolist extends serendipity_event {
}
if ($entry['id'] == $default) {
- $entrytext.= '\n";
+ $entrytext.= '\n";
} else {
- $entrytext .= '\n";
+ $entrytext .= '\n";
}
}
}
@@ -1884,7 +1884,7 @@ class serendipity_event_todolist extends serendipity_event {
|
- |
+ |
diff --git a/serendipity_event_trackback/serendipity_event_trackback.php b/serendipity_event_trackback/serendipity_event_trackback.php
index a61b976b..45e80f1f 100644
--- a/serendipity_event_trackback/serendipity_event_trackback.php
+++ b/serendipity_event_trackback/serendipity_event_trackback.php
@@ -26,7 +26,7 @@ class serendipity_event_trackback extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_MTRACKBACK_TITLEDESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Malte Paskuda');
- $propbag->add('version', '1.16');
+ $propbag->add('version', '1.16.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -174,7 +174,7 @@ class serendipity_event_trackback extends serendipity_event
$urls = serendipity_db_query("SELECT link FROM {$serendipity['dbPrefix']}references WHERE entry_id = '". (int)$eventData['id'] ."'");
if (is_array($urls)) {
foreach($urls AS $row) {
- $trackbackURLs[] = htmlspecialchars($row['link']);
+ $trackbackURLs[] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($row['link']) : htmlspecialchars($row['link'], ENT_COMPAT, LANG_CHARSET));
}
}
}
@@ -184,7 +184,7 @@ class serendipity_event_trackback extends serendipity_event
foreach($additional_urls AS $additional_url) {
$additional_url = trim($additional_url);
if (!in_array($additional_url, $trackbackURLs)) {
- $trackbackURLs[] = htmlspecialchars($additional_url);
+ $trackbackURLs[] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($additional_url) : htmlspecialchars($additional_url, ENT_COMPAT, LANG_CHARSET));
}
}
}
diff --git a/serendipity_event_trackexits/serendipity_event_trackexits.php b/serendipity_event_trackexits/serendipity_event_trackexits.php
index 530a2e4d..35c7b2e1 100644
--- a/serendipity_event_trackexits/serendipity_event_trackexits.php
+++ b/serendipity_event_trackexits/serendipity_event_trackexits.php
@@ -15,7 +15,7 @@ class serendipity_event_trackexits extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_TRACKBACK_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
- $propbag->add('version', '1.9');
+ $propbag->add('version', '1.9.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -208,8 +208,8 @@ class serendipity_event_trackexits extends serendipity_event
$buffer[1],
'http://bmi.pifo.biz/?' . $url,
- (!$is_title ? htmlspecialchars($url) : ''),
- (!$is_over ? htmlspecialchars($url) : ''),
+ (!$is_title ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
+ (!$is_over ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
$buffer[6]);
}
@@ -221,8 +221,8 @@ class serendipity_event_trackexits extends serendipity_event
'_id',
$this->links[$url],
($entry_id != 0) ? '&entry_id=' . $entry_id : '',
- (!$is_title ? htmlspecialchars($url) : ''),
- (!$is_over ? htmlspecialchars($url) : ''),
+ (!$is_title ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
+ (!$is_over ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
$buffer[6]
);
} else {
@@ -233,8 +233,8 @@ class serendipity_event_trackexits extends serendipity_event
'',
base64_encode($url),
($entry_id != 0) ? '&entry_id=' . $entry_id : '',
- (!$is_title ? htmlspecialchars($url) : ''),
- (!$is_over ? htmlspecialchars($url) : ''),
+ (!$is_title ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
+ (!$is_over ? (function_exists('serendipity_specialchars') ? serendipity_specialchars($url) : htmlspecialchars($url, ENT_COMPAT, LANG_CHARSET)) : ''),
$buffer[6]
);
}
diff --git a/serendipity_event_typesetbuttons/serendipity_event_typesetbuttons.php b/serendipity_event_typesetbuttons/serendipity_event_typesetbuttons.php
index 6b3d674e..5564af03 100644
--- a/serendipity_event_typesetbuttons/serendipity_event_typesetbuttons.php
+++ b/serendipity_event_typesetbuttons/serendipity_event_typesetbuttons.php
@@ -36,7 +36,7 @@ class serendipity_event_typesetbuttons extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_TYPESETBUTTONS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Matthew Groeninger, Malte Diers, Matthias Gutjahr');
- $propbag->add('version', '0.22');
+ $propbag->add('version', '0.22.1');
$propbag->add('requirements', array(
'serendipity' => '1.7',
'smarty' => '2.6.7',
@@ -454,7 +454,7 @@ class serendipity_event_typesetbuttons extends serendipity_event
private function getCustomButton($txtarea, $part)
{
$buttons = explode('@', $part);
- $b_name = htmlspecialchars($buttons[0]);
+ $b_name = (function_exists('serendipity_specialchars') ? serendipity_specialchars($buttons[0]) : htmlspecialchars($buttons[0], ENT_COMPAT, LANG_CHARSET));
$b_title = preg_replace('@[^a-z0-9]@i', '_', $buttons[0]);
$b_open = str_replace(array('"', "'"), array('"', "\\'"), $buttons[1]);
$b_close = str_replace(array('"', "'"), array('"', "\\'"), $buttons[2]);
diff --git a/serendipity_event_unstrip_tags/serendipity_event_unstrip_tags.php b/serendipity_event_unstrip_tags/serendipity_event_unstrip_tags.php
index 09bb15a2..b509c844 100644
--- a/serendipity_event_unstrip_tags/serendipity_event_unstrip_tags.php
+++ b/serendipity_event_unstrip_tags/serendipity_event_unstrip_tags.php
@@ -24,7 +24,7 @@ class serendipity_event_unstrip_tags extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_UNSTRIP_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '1.03');
+ $propbag->add('version', '1.03.1');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@@ -47,7 +47,7 @@ class serendipity_event_unstrip_tags extends serendipity_event
case 'frontend_display':
if (isset($eventData ['comment']) && !empty($eventData['body'])) {
- $eventData['comment'] = htmlspecialchars($eventData['body']);
+ $eventData['comment'] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($eventData['body']) : htmlspecialchars($eventData['body'], ENT_COMPAT, LANG_CHARSET));
}
return true;
break;
diff --git a/serendipity_event_userprofiles/serendipity_event_userprofiles.php b/serendipity_event_userprofiles/serendipity_event_userprofiles.php
index 9b86b38f..224061b9 100755
--- a/serendipity_event_userprofiles/serendipity_event_userprofiles.php
+++ b/serendipity_event_userprofiles/serendipity_event_userprofiles.php
@@ -96,7 +96,7 @@ class serendipity_event_userprofiles extends serendipity_event {
'genpage' => true
));
$propbag->add('author', 'Garvin Hicking, Falk Doering');
- $propbag->add('version', '0.28');
+ $propbag->add('version', '0.28.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -223,11 +223,11 @@ class serendipity_event_userprofiles extends serendipity_event {
echo '';
echo '';
echo ' ';
- echo '' . htmlspecialchars(PLUGIN_EVENT_USERPROFILES_SELECT) . '
';
+ echo '' . (function_exists('serendipity_specialchars') ? serendipity_specialchars(PLUGIN_EVENT_USERPROFILES_SELECT) : htmlspecialchars(PLUGIN_EVENT_USERPROFILES_SELECT, ENT_COMPAT, LANG_CHARSET)) . '
';
echo USER . ' ';
echo ' ';
@@ -350,7 +350,7 @@ class serendipity_event_userprofiles extends serendipity_event {
echo ' | ';
switch($info['type']) {
case 'html':
- echo '\n";
+ echo '\n";
break;
case 'boolean':
@@ -370,7 +370,7 @@ class serendipity_event_userprofiles extends serendipity_event {
case 'string':
default:
- echo '';
+ echo '';
}
echo ' | ';
echo '
';
@@ -627,14 +627,14 @@ class serendipity_event_userprofiles extends serendipity_event {
. '&gravatar_id=' . md5($eventData['email'])
. '&size=' . $this->get_config('gravatar_size','80')
. '&border=&rating=' . $this->get_config('gravatar_rating','R');
- $this->found_images[$author] = '' . VERSIONING_TITLE . ':
%s
';
$html = '';
@@ -307,9 +307,9 @@ class serendipity_event_wikilinks extends serendipity_event
if (is_array($e)) {
foreach($e AS $entry) {
$link = serendipity_archiveURL($entry['id'], $entry['title'], 'serendipityHTTPPath', true, array('timestamp' => $entry['timestamp']));
- $jslink = "'
" . htmlspecialchars($entry['title']) . "<' + '/a>'";
+ $jslink = "'" . (function_exists('serendipity_specialchars') ? serendipity_specialchars($entry['title']) : htmlspecialchars($entry['title'], ENT_COMPAT, LANG_CHARSET)) . "<' + '/a>'";
echo ''
- . '' . htmlspecialchars($entry['title']) . ' (#' . $entry['id'] . ')
'
+ . '' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($entry['title']) : htmlspecialchars($entry['title'], ENT_COMPAT, LANG_CHARSET)) . ' (#' . $entry['id'] . ')
'
. POSTED_BY . ' ' . $entry['author'] . ' '
. ON . ' ' . serendipity_formatTime(DATE_FORMAT_SHORT, $entry['timestamp']) .
($entry['isdraft'] != 'false' ? ' (' . DRAFT . ')' : '') . '' . "\n";
@@ -505,8 +505,8 @@ function use_link_(txt) {
array(
$refix,
- htmlspecialchars($buffer['ref']),
- htmlspecialchars($buffer['refname']),
+ (function_exists('serendipity_specialchars') ? serendipity_specialchars($buffer['ref']) : htmlspecialchars($buffer['ref'], ENT_COMPAT, LANG_CHARSET)),
+ (function_exists('serendipity_specialchars') ? serendipity_specialchars($buffer['refname']) : htmlspecialchars($buffer['refname'], ENT_COMPAT, LANG_CHARSET)),
),
$result
);
@@ -539,7 +539,7 @@ function use_link_(txt) {
array(
$count2,
- htmlspecialchars($buffer),
+ (function_exists('serendipity_specialchars') ? serendipity_specialchars($buffer) : htmlspecialchars($buffer, ENT_COMPAT, LANG_CHARSET)),
$key
),
$format
@@ -627,7 +627,7 @@ function use_link_(txt) {
if (serendipity_userLoggedIn()) {
$mode = 'create';
$title = urlencode($ltitle);
- $body = '
' . htmlspecialchars($ltitle) . '
';
+ $body = '
' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($ltitle) : htmlspecialchars($ltitle, ENT_COMPAT, LANG_CHARSET)) . '
';
$admin_url2 = $serendipity['baseURL'] . 'serendipity_admin.php?serendipity[adminModule]=event_display&serendipity[adminAction]=staticpages&serendipity[pre][headline]=' . $title . '&serendipity[pre][content]=' . $body . '&serendipity[pre][pagetitle]=' . $title;
if ($otype == 'staticpage') {
diff --git a/serendipity_event_wrapurl/serendipity_event_wrapurl.php b/serendipity_event_wrapurl/serendipity_event_wrapurl.php
index 89015d85..0578712d 100644
--- a/serendipity_event_wrapurl/serendipity_event_wrapurl.php
+++ b/serendipity_event_wrapurl/serendipity_event_wrapurl.php
@@ -27,7 +27,7 @@ class serendipity_event_wrapURL extends serendipity_event {
$propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true, 'frontend_generate_plugins' => true, 'css' => true));
$propbag->add('configuration', array('headline', 'permalink', 'pagetitle', 'wrapurl', 'height', 'wrapurl_append', 'hide_sidebar'));
$propbag->add('author', 'Rob Antonishen, Ian (Timbalu)');
- $propbag->add('version', '0.10');
+ $propbag->add('version', '0.10.1');
$propbag->add('requirements', array(
'serendipity' => '0.7',
'smarty' => '2.6.7',
@@ -126,7 +126,7 @@ class serendipity_event_wrapURL extends serendipity_event {
continue;
}
- $url .= htmlspecialchars($key) . '=' . htmlspecialchars($value) . '&';
+ $url .= (function_exists('serendipity_specialchars') ? serendipity_specialchars($key) : htmlspecialchars($key, ENT_COMPAT, LANG_CHARSET)) . '=' . (function_exists('serendipity_specialchars') ? serendipity_specialchars($value) : htmlspecialchars($value, ENT_COMPAT, LANG_CHARSET)) . '&';
}
}
diff --git a/serendipity_event_xsstrust/serendipity_event_xsstrust.php b/serendipity_event_xsstrust/serendipity_event_xsstrust.php
index 739b1b95..eec2276b 100644
--- a/serendipity_event_xsstrust/serendipity_event_xsstrust.php
+++ b/serendipity_event_xsstrust/serendipity_event_xsstrust.php
@@ -31,7 +31,7 @@ class serendipity_event_xsstrust extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
- $propbag->add('version', '0.5');
+ $propbag->add('version', '0.5.1');
$propbag->add('event_hooks', array(
'frontend_display' => true,
'backend_media_check' => true));
@@ -61,7 +61,7 @@ class serendipity_event_xsstrust extends serendipity_event
$users = (array)serendipity_fetchUsers();
$valid =& $this->trusted_authors;
foreach($users as $user) {
- $html .= '
' . "\n";
+ $html .= '
' . "\n";
}
$html .= '';
@@ -137,8 +137,8 @@ class serendipity_event_xsstrust extends serendipity_event
if (!isset($this->trusted_authors[$eventData['authorid']])) {
// Not trusted.
#$eventData['title'] = htmlspecialchars($eventData['title']);
- $eventData['body'] = htmlspecialchars($eventData['body']);
- $eventData['extended'] = htmlspecialchars($eventData['extended']);
+ $eventData['body'] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($eventData['body']) : htmlspecialchars($eventData['body'], ENT_COMPAT, LANG_CHARSET));
+ $eventData['extended'] = (function_exists('serendipity_specialchars') ? serendipity_specialchars($eventData['extended']) : htmlspecialchars($eventData['extended'], ENT_COMPAT, LANG_CHARSET));
} else {
// Trusted.
}
diff --git a/serendipity_event_xsstrust/serendipity_plugin_xsstrust.php b/serendipity_event_xsstrust/serendipity_plugin_xsstrust.php
index 8bb209b9..069ee164 100644
--- a/serendipity_event_xsstrust/serendipity_plugin_xsstrust.php
+++ b/serendipity_event_xsstrust/serendipity_plugin_xsstrust.php
@@ -28,7 +28,7 @@ class serendipity_plugin_xsstrust extends serendipity_plugin
$propbag->add('description', PLUGIN_ETHICS_BLAHBLAH);
$propbag->add('stackable', false);
$propbag->add('author', 'Loris Zena');
- $propbag->add('version', '1.1');
+ $propbag->add('version', '1.1.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -218,7 +218,7 @@ class serendipity_plugin_xsstrust extends serendipity_plugin
if ($sql && is_array($sql)) {
foreach($sql AS $key => $row) {
echo "
";
- echo htmlspecialchars($row['villan'])." | ";
+ echo (function_exists('serendipity_specialchars') ? serendipity_specialchars($row['villan']) : htmlspecialchars($row['villan'], ENT_COMPAT, LANG_CHARSET))." | ";
if ($row['ethics'] == 3) {
?>
diff --git a/serendipity_plugin_adduser/common.inc.php b/serendipity_plugin_adduser/common.inc.php
index 10d612f3..484d5c66 100644
--- a/serendipity_plugin_adduser/common.inc.php
+++ b/serendipity_plugin_adduser/common.inc.php
@@ -66,7 +66,7 @@ class serendipity_common_adduser {
}
$author = serendipity_db_query($q, true);
- serendipity_common_adduser::sendMail($author['username'], htmlspecialchars($string), $author['email'], false, false);
+ serendipity_common_adduser::sendMail($author['username'], (function_exists('serendipity_specialchars') ? serendipity_specialchars($string) : htmlspecialchars($string, ENT_COMPAT, LANG_CHARSET)), $author['email'], false, false);
echo PLUGIN_ADDUSER_SENTMAIL_APPROVE_ADMIN;
return true;
@@ -92,7 +92,7 @@ class serendipity_common_adduser {
if (is_array($author)) {
$user = serendipity_db_query("SELECT authorid FROM {$serendipity['dbPrefix']}authors WHERE username = '" . serendipity_db_escape_string($author['username']) . "'", true);
if (is_array($user) && !empty($user['authorid'])) {
- printf(PLUGIN_ADDUSER_EXISTS . ' ', htmlspecialchars($author['username']));
+ printf(PLUGIN_ADDUSER_EXISTS . ' ', (function_exists('serendipity_specialchars') ? serendipity_specialchars($author['username']) : htmlspecialchars($author['username'], ENT_COMPAT, LANG_CHARSET)));
return false;
}
@@ -221,7 +221,7 @@ class serendipity_common_adduser {
$user = serendipity_db_query("SELECT authorid FROM {$serendipity['dbPrefix']}authors WHERE username = '" . serendipity_db_escape_string($username) . "'", true);
if (is_array($user) && !empty($user['authorid'])) {
- printf(PLUGIN_ADDUSER_EXISTS . ' ', htmlspecialchars($username));
+ printf(PLUGIN_ADDUSER_EXISTS . ' ', (function_exists('serendipity_specialchars') ? serendipity_specialchars($username) : htmlspecialchars($username, ENT_COMPAT, LANG_CHARSET)));
return false;
}
diff --git a/serendipity_plugin_adduser/serendipity_event_adduser.php b/serendipity_plugin_adduser/serendipity_event_adduser.php
index b41a5867..7f0c8fdc 100644
--- a/serendipity_plugin_adduser/serendipity_event_adduser.php
+++ b/serendipity_plugin_adduser/serendipity_event_adduser.php
@@ -12,7 +12,7 @@ class serendipity_event_adduser extends serendipity_event
$propbag->add('description', PLUGIN_ADDUSER_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '2.37');
+ $propbag->add('version', '2.37.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
diff --git a/serendipity_plugin_adduser/serendipity_plugin_adduser.php b/serendipity_plugin_adduser/serendipity_plugin_adduser.php
index dec26f03..2ffc3c24 100644
--- a/serendipity_plugin_adduser/serendipity_plugin_adduser.php
+++ b/serendipity_plugin_adduser/serendipity_plugin_adduser.php
@@ -12,7 +12,7 @@ class serendipity_plugin_adduser extends serendipity_plugin {
$propbag->add('description', PLUGIN_ADDUSER_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '2.34');
+ $propbag->add('version', '2.34.1');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@@ -158,7 +158,7 @@ class serendipity_plugin_adduser extends serendipity_plugin {
$html .= ' |