Fossil SCM
remove the delete submenu from /rptedit, as it doesn't work anyway because the CSRF check only allows POST requests
Commit
7c91416166a7ecbb32f5ad55401226edebfdd33ed74db8cef8c61acd8871964e
Parent
86c1910ffbd1b64…
1 file changed
-3
-3
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -583,13 +583,10 @@ | ||
| 583 | 583 | zOwner = g.zLogin; |
| 584 | 584 | } |
| 585 | 585 | } |
| 586 | 586 | if( zOwner==0 ) zOwner = g.zLogin; |
| 587 | 587 | style_submenu_element("Cancel", "%R/reportlist"); |
| 588 | - if( rn>0 ){ | |
| 589 | - style_submenu_element("Delete", "%R/rptedit/%d?del1=1", rn); | |
| 590 | - } | |
| 591 | 588 | style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format"); |
| 592 | 589 | if( zErr ){ |
| 593 | 590 | @ <blockquote class="reportError">%h(zErr)</blockquote> |
| 594 | 591 | } |
| 595 | 592 | @ <form action="rptedit" method="post"><div> |
| 596 | 593 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -583,13 +583,10 @@ | |
| 583 | zOwner = g.zLogin; |
| 584 | } |
| 585 | } |
| 586 | if( zOwner==0 ) zOwner = g.zLogin; |
| 587 | style_submenu_element("Cancel", "%R/reportlist"); |
| 588 | if( rn>0 ){ |
| 589 | style_submenu_element("Delete", "%R/rptedit/%d?del1=1", rn); |
| 590 | } |
| 591 | style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format"); |
| 592 | if( zErr ){ |
| 593 | @ <blockquote class="reportError">%h(zErr)</blockquote> |
| 594 | } |
| 595 | @ <form action="rptedit" method="post"><div> |
| 596 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -583,13 +583,10 @@ | |
| 583 | zOwner = g.zLogin; |
| 584 | } |
| 585 | } |
| 586 | if( zOwner==0 ) zOwner = g.zLogin; |
| 587 | style_submenu_element("Cancel", "%R/reportlist"); |
| 588 | style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format"); |
| 589 | if( zErr ){ |
| 590 | @ <blockquote class="reportError">%h(zErr)</blockquote> |
| 591 | } |
| 592 | @ <form action="rptedit" method="post"><div> |
| 593 |