mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 03:05:58 +05:30
Add SECURITY.md
Add SECURITY.md also fix unexpected behavior with tags in number. See #614
This commit is contained in:
parent
4b9d74f907
commit
5a4357b1c5
4 changed files with 13 additions and 8 deletions
|
|
@ -172,7 +172,7 @@ New category info etc.
|
|||
````
|
||||
The slug for the new category is `new-category` (htmly removing the file extension). And for full file directory:
|
||||
````
|
||||
content/username/new-category/post/file.md
|
||||
content/username/blog/new-category/post/file.md
|
||||
````
|
||||
|
||||
File Naming Convention
|
||||
|
|
|
|||
5
SECURITY.md
Normal file
5
SECURITY.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
## Security Policy
|
||||
|
||||
### Reporting Vulnerability
|
||||
|
||||
Please report any security vulnerabilities to **[dan@danpros.com](mailto:dan@danpros.com)**. If we can confirm the issue, we will release a patch as soon as possible.
|
||||
|
|
@ -99,7 +99,7 @@ function add_content($title, $tag, $url, $content, $user, $draft, $category, $ty
|
|||
foreach ($tag as $t) {
|
||||
if (array_key_exists($t, $tflip)) {
|
||||
foreach ($tflip as $tfp => $tf){
|
||||
if($t === $tfp) {
|
||||
if($t == $tfp) {
|
||||
$post_tag[] = $tf;
|
||||
$post_tagmd[] = $tfp;
|
||||
}
|
||||
|
|
@ -136,8 +136,8 @@ function add_content($title, $tag, $url, $content, $user, $draft, $category, $ty
|
|||
foreach ($combine as $tag => $v) {
|
||||
if (array_key_exists($v, $tags)) {
|
||||
foreach ($inter as $in => $i){
|
||||
if($v === $in) {
|
||||
if (strtolower($tag) === strtolower(tag_i18n($in))) {
|
||||
if($v == $in) {
|
||||
if (strtolower($tag) == strtolower(tag_i18n($in))) {
|
||||
$newtag[$v]= $tag;
|
||||
} else {
|
||||
$newtag[$v.'-'. $timestamp]= $tag;
|
||||
|
|
@ -242,7 +242,7 @@ function edit_content($title, $tag, $url, $content, $oldfile, $revertPost, $publ
|
|||
foreach ($tag as $t) {
|
||||
if (array_key_exists($t, $tflip)) {
|
||||
foreach ($tflip as $tfp => $tf){
|
||||
if($t === $tfp) {
|
||||
if($t == $tfp) {
|
||||
$post_tag[] = $tf;
|
||||
$post_tagmd[] = $tfp;
|
||||
}
|
||||
|
|
@ -287,8 +287,8 @@ function edit_content($title, $tag, $url, $content, $oldfile, $revertPost, $publ
|
|||
foreach ($combine as $tag => $v) {
|
||||
if (array_key_exists($v, $tags)) {
|
||||
foreach ($inter as $in => $i){
|
||||
if($v === $in) {
|
||||
if (strtolower($tag) === strtolower(tag_i18n($in))) {
|
||||
if($v == $in) {
|
||||
if (strtolower($tag) == strtolower(tag_i18n($in))) {
|
||||
$newtag[$v]= $tag;
|
||||
} else {
|
||||
$newtag[$v.'-'. $timestamp]= $tag;
|
||||
|
|
|
|||
|
|
@ -3369,4 +3369,4 @@ function publish_scheduled()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue