Skip to content

Commit

Permalink
hot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirilkirkov committed Aug 21, 2021
1 parent fe74708 commit 56465fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/config/config.php
Expand Up @@ -358,7 +358,7 @@
| https://codeigniter.com/user_guide/libraries/encryption.html
|
*/
$config['encryption_key'] = '';
$config['encryption_key'] = 'asd';

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -414,7 +414,7 @@
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_save_path'] = sys_get_temp_dir();
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion application/modules/admin/views/blog/blogpublish.php
Expand Up @@ -42,7 +42,7 @@
<div class="form-group">
<?php if (isset($_POST['image'])) { ?>
<input type="hidden" name="old_image" value="<?= htmlspecialchars($_POST['image']) ?>">
<div><img class="img-responsive" src="<?= base_url('attachments/blog_images/' . $_POST['image']) ?>"></div>
<div><img class="img-responsive" src="<?= base_url('attachments/blog_images/' . htmlspecialchars($_POST['image'])) ?>"></div>
<label for="userfile">Choose another image:</label>
<?php } else { ?>
<label for="userfile">Upload image:</label>
Expand Down

0 comments on commit 56465fb

Please sign in to comment.