Giter VIP home page Giter VIP logo

Comments (2)

Summer-Tail avatar Summer-Tail commented on September 27, 2024

看到作者wiki说是 自带的评论系统进行储存的我就把它调回了普通模板,评论了一条消息,法线提交post的时候他还发送了另一条数据 &_=8264210fad7fb029f62d1364fc6fca7f 而且这条数据是不变的,加上这条数据在进行提交就可以了

本人也不太会编程,他的说说模板文件是叫做 saying.php

找到form表单这一行
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="saying-form" role="form"> <p> <textarea rows="8" cols="50" name="text" id="textarea" placeholder="<?php gtecho('sayingPageTexts','sayingPlaceholder'); ?>" class="OwO-textarea comment-textarea textarea" required ><?php $this->remember('text'); ?></textarea> <input type="hidden" name="_" value="8264210fad7fb029f62d1364fc6fca7f"></input> </p> <p> <button type="submit" class="comment-submit submit"><?php gtecho('sayingPageTexts','sayingSubmit'); ?></button> </p> </form>
把这个替换上去就行了,原理就是加了个隐形的编辑框 名字是_ 提交的数据就是刚刚说到的数据

from miracles.

ShenHai9 avatar ShenHai9 commented on September 27, 2024

在Typecho後台的評論設置中,將選項“开启反垃圾保护”給關閉可以解決這個問題。

from miracles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.