diff --git a/function/function.php b/function/function.php
index 1b2d000..d58827e 100644
--- a/function/function.php
+++ b/function/function.php
@@ -1913,6 +1913,8 @@ function delete_ueuse($uniqid, $userid, $account_id){
$pdo->rollBack();
$error_message[] = "リユーズの削除ができませんでした。";
actionLog($userid, "error", "delete_ueuse", null, $error_message, 3);
+ }else{
+ $pdo->commit();
}
} catch(PDOException $e) {
$pdo->rollBack();
diff --git a/index.php b/index.php
index ceb328e..02158a3 100644
--- a/index.php
+++ b/index.php
@@ -83,7 +83,7 @@ $count2 = $result2->num_rows;
diff --git a/js/view_function.js b/js/view_function.js
index 9568b28..c1aa0d8 100644
--- a/js/view_function.js
+++ b/js/view_function.js
@@ -116,6 +116,15 @@ async function replaceCustomEmojis(text) {
}
function a_link(text){
+ const placeholders = {};
+ let placeholderIndex = 0;
+
+ text = text.replace(/'/g, (match) => {
+ const key = `\u2063{{PLACEHOLDER${placeholderIndex++}}}\u2063`;
+ placeholders[key] = match; // 元の文字列を保存
+ return key;
+ });
+
text = text.replace(/(https:\/\/[\w!?\/+\-_~;.,*&@#$%()+|https:\/\/[ぁ-んァ-ヶ一ー-龠々\w\-\/?=&%.]+)/g, function(url) {
const escapedUrl = url;
const no_https_link = escapedUrl.replace("https://", "");
@@ -132,6 +141,11 @@ function a_link(text){
return `${before}
#${tag}`;
});
+ for (const key in placeholders) {
+ const escapedKey = key.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+ text = text.replace(new RegExp(escapedKey, 'g'), placeholders[key]);
+ }
+
return text;
}
@@ -160,6 +174,13 @@ function formatMarkdown(text) {
return key;
});
+ // ユーザーIDをプレースホルダーに退避
+ text = text.replace(/@([a-zA-Z0-9_]+)/g, (match) => {
+ const key = `\u2063{{PLACEHOLDER${placeholderIndex++}}}\u2063`;
+ placeholders[key] = match; // 元の文字列を保存
+ return key;
+ });
+
// 独自構文などの装飾
text = text.replace(/\[\[buruburu (.+?)\]\]/g, '
$1');
text = text.replace(/\[\[time (\d+)\]\]/g, (_, ts) => {
@@ -348,6 +369,11 @@ async function createUeuseHtml(ueuse, selectedUniqid = null) {
if(ueuse["ueuse"].length > 0){
reuse = ``;
if(!(ueuse["reuse"] == null)){
+ // カスタム絵文字を非同期に差し替え
+ var inyoreuseHtml = formatMarkdown(a_link(ueuse["reuse"]["ueuse"]));
+ inyoreuseHtml = await replaceMentions(inyoreuseHtml);
+ inyoreuseHtml = await replaceCustomEmojis(inyoreuseHtml);
+
inyo = `
- `+formatMarkdown(a_link(ueuse["reuse"]["ueuse"]))+`
+ `+inyoreuseHtml+`
`;
}else{
diff --git a/login.php b/login.php
index b57e280..8d8d96a 100644
--- a/login.php
+++ b/login.php
@@ -66,6 +66,31 @@ if(!($is_login === false)){
}
//-------------------------------------------------------------
+$serversettings_file = "server/serversettings.ini";
+$serversettings = parse_ini_file($serversettings_file, true);
+
+
+//------------------------
+
+$serverinfofile = 'server/info.txt';
+$serverinfo = file_get_contents($serverinfofile);
+
+//-------------------------------------
+
+//-------------------------
+$softwarefile = "server/uwuzuinfo.txt";
+$softwaredata = file_get_contents($softwarefile);
+
+$softwaredata = explode( "\n", $softwaredata );
+$cnt = count( $softwaredata );
+for( $i=0;$i<$cnt;$i++ ){
+ $uwuzuinfo[$i] = ($softwaredata[$i]);
+}
+//-------------------------
+
+$domain = $_SERVER['HTTP_HOST'];
+
+//------------------------
//パスワード試行回数制限-------------------------------------------
if (!isset($_SESSION['login_passtry'])) {
$_SESSION['login_passtry'] = 0;
@@ -232,11 +257,12 @@ $pdo = null;
"/>
-
+
+
@@ -249,7 +275,6 @@ $pdo = null;
ログイン -
-
diff --git a/new.php b/new.php
index 93c0ad6..eeefffc 100644
--- a/new.php
+++ b/new.php
@@ -492,6 +492,7 @@ $pdo = null;
+
@@ -505,8 +506,6 @@ $pdo = null;
アカウント登録 -
-
-
diff --git a/new_select.php b/new_select.php
index 1360f88..d0abd96 100644
--- a/new_select.php
+++ b/new_select.php
@@ -74,6 +74,7 @@ try {
+
@@ -90,11 +91,6 @@ if ("serviceWorker" in navigator) {
アカウント登録
-
-
-
-
-
diff --git a/server/uwuzuinfo.txt b/server/uwuzuinfo.txt
index 0246c8a..3f584cd 100644
--- a/server/uwuzuinfo.txt
+++ b/server/uwuzuinfo.txt
@@ -1,4 +1,4 @@
uwuzu
-1.5.2
-2025/05/04
+1.5.3
+2025/05/12
daichimarukana,putonfps
\ No newline at end of file
diff --git a/server/uwuzurelease.txt b/server/uwuzurelease.txt
index 3a1f959..c57bd07 100644
--- a/server/uwuzurelease.txt
+++ b/server/uwuzurelease.txt
@@ -1,6 +1,15 @@
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
+## Version 1.5.3 (Combeny)
+2025/05/12
+fix: ユーズに何も引用などしていない通常のリユーズがある場合にユーズを削除しようとした場合にエラーが発生する恐れのある問題を修正しました!
+fix: 上記故に発生するアカウントに失敗する問題を修正しました。
+fix: 特定の条件下でアカウント削除が正常に行えない問題を修正しました。
+fix: ユーズ表示時にユーザーIDにアンダーバーが複数入っている場合に問題が発生する問題を修正しました。
+fix: ユーズ内でアポストロフィーを入力した際に表示に問題が出る問題を修正しました!
+fix: OGPが正常に動作しない恐れのある問題を修正しました。
+
## Version 1.5.2 (Combeny)
2025/05/04
fix: ユーズのMarkdownがもっと上手く働かないどころか崩壊してしまう問題を修正しました!
diff --git a/success.php b/success.php
index a19f3cd..527cf86 100644
--- a/success.php
+++ b/success.php
@@ -26,17 +26,14 @@ if(!(empty($_SESSION['done']))){
+
アカウント登録完了!!! -
-
-
-
-
diff --git a/update.json b/update.json
index 2d73f66..9b80f3f 100644
--- a/update.json
+++ b/update.json
@@ -1,12 +1,22 @@
{
"software": "uwuzu",
- "version": "1.5.2",
- "release_date": "2025/05/04",
- "release_notes": "このアップデートではユーズのMarkdown解析が正常に行われないバグの修正が行われています。詳細はリリースノートをご覧ください。",
- "notices": "アップデート前にデータのバックアップを行うことをおすすめします!",
+ "version": "1.5.3",
+ "release_date": "2025/05/12",
+ "release_notes": "このアップデートにはアカウント削除に失敗する問題の修正や、ユーズのMarkdownの解析に失敗する問題の修正が含まれます!詳細はリリースノートをご覧ください。",
+ "notices": "アップデート前にデータのバックアップを行うことをおすすめします!\nまた、アップデート後はキャッシュクリアをお忘れなく!",
"files": {
"overwrite": [
"/js/view_function.js",
+ "/function/function.php",
+ "/addauthcode.php",
+ "/authcodechk.php",
+ "/authlogin.php",
+ "/check.php",
+ "/index.php",
+ "/login.php",
+ "/new_select.php",
+ "/new.php",
+ "/success.php",
"/server/uwuzuabout.txt",
"/server/uwuzuinfo.txt",