Skip to content

Commit

Permalink
v0.33.6
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Oct 28, 2022
1 parent 4bcca25 commit 8c0c318
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions petitnote/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,21 +343,30 @@ function get_uip(){

//タブ除去
function t($str){
if($str!==0 && $str!=='0' && !$str){
if($str===0 || $str==='0'){
return '0';
}
if(!$str){
return '';
}
return str_replace("\t","",$str);
}
//タグ除去
function s($str){
if($str!==0 && $str!=='0' && !$str){
if($str===0 || $str==='0'){
return '0';
}
if(!$str){
return '';
}
return strip_tags($str);
}
//エスケープ
function h($str){
if($str!==0 && $str!=='0' && !$str){
if($str===0 || $str==='0'){
return '0';
}
if(!$str){
return '';
}
return htmlspecialchars($str,ENT_QUOTES,"utf-8",false);
Expand Down
4 changes: 2 additions & 2 deletions petitnote/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//Petit Note (c)さとぴあ @satopian 2021-2022
//1スレッド1ログファイル形式のスレッド式画像掲示板
$petit_ver='v0.33.5';
$petit_ver='v0.33.6';
$petit_lot='lot.221028';

$lang = ($http_langs = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '')
Expand All @@ -12,7 +12,7 @@
return die(__DIR__.'/functions.php'.($en ? ' does not exist.':'がありません。'));
}
require_once(__DIR__.'/functions.php');
if(!isset($functions_ver)||$functions_ver<20221027){
if(!isset($functions_ver)||$functions_ver<20221028){
return die($en?'Please update functions.php to the latest version.':'functions.phpを最新版に更新してください。');
}
// jQueryバージョン
Expand Down

0 comments on commit 8c0c318

Please sign in to comment.