Archived
1
0

* Prevent entryproperties from saving/displaying a browser-side

stored password that was actually not set.
[THIS BUGGED ME FOR A SOOOOO LONG TIME!]

    * Stronger check for existing logger interface to prevent errors
      when it is not actively used.
This commit is contained in:
Garvin Hicking
2015-01-15 15:39:00 +01:00
parent b07a835629
commit 1b9e5de787
4 changed files with 9 additions and 2 deletions
+6
View File
@@ -3,6 +3,12 @@
Version 2.0 ()
------------------------------------------------------------------------
* Prevent entryproperties from saving/displaying a browser-side
stored password that was actually not set.
* Stronger check for existing logger interface to prevent errors
when it is not actively used.
* Fix entryproperties being removed when publishing an article
from the dashboard and by specific plugins (freetag, trackback)
that modify entry data.
+1 -1
View File
@@ -838,7 +838,7 @@ function serendipity_handle_references($id, $author, $title, $text, $dry_run = f
$query .= (int)$id . ", '" . $i_link . "', '" . $i_location . "')";
$ins = serendipity_db_query($query);
if (is_string($ins)) {
$serendipity['logger']->debug($ins);
if (is_object($serendipity['logger'])) $serendipity['logger']->debug($ins);
}
$old_references[] = array(
@@ -331,6 +331,7 @@ class serendipity_event_entryproperties extends serendipity_event
?>
<div class="entryproperties_access_pw form_field">
<label for="properties_access_pw"><?php echo PASSWORD; ?>:</label>
<input type="password" name="ignore_password" value="" style="display:none">
<input id="properties_access_pw" name="serendipity[properties][entrypassword]" type="password" autocomplete="off" value="<?php echo serendipity_specialchars($password); ?>">
</div>
<?php
+1 -1
View File
@@ -302,7 +302,7 @@ if (serendipity_FUNCTIONS_LOADED !== true) {
if (!serendipity_db_connect()) {
$serendipity['lang'] = 'en';
include(S9Y_INCLUDE_PATH . 'include/lang.inc.php');
$serendipity['logger']->critical(DATABASE_ERROR);
if (is_object($serendipity['logger'])) $serendipity['logger']->critical(DATABASE_ERROR);
serendipity_die(DATABASE_ERROR);
}