revert some [tag] vs. %5Btag%5D changes.

The gist is this: Use [tag] inside <form> tags. Use %5B/%5D when used within a href attribute.
This commit is contained in:
Garvin Hicking 2012-01-07 23:54:55 +01:00
parent 8fd57d9714
commit 1225608f63
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
3.36:
-----
Fixed [tag] in one instance of HTML form field, thanks to ascger from the forums
3.35:
----

View file

@ -70,7 +70,7 @@ class serendipity_event_freetag extends serendipity_event
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('version', '3.35');
$propbag->add('version', '3.36');
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
@ -1865,8 +1865,8 @@ class serendipity_event_freetag extends serendipity_event
<?php
if (urldecode($serendipity['GET']['tag']) == $tag) {
?>
<input type="hidden" name="serendipity%5Btag%5D" value="<?php echo urlencode(urldecode($serendipity['GET']['tag'])); ?>" />
<input type="submit" name="serendipity%5Bkeywordsubmit%5D" class="serendipityPrettyButton input_button" value="<?php echo SAVE; ?>" />
<input type="hidden" name="serendipity[tag]" value="<?php echo urlencode(urldecode($serendipity['GET']['tag'])); ?>" />
<input type="submit" name="serendipity[keywordsubmit]" class="serendipityPrettyButton input_button" value="<?php echo SAVE; ?>" />
<?php
} else {
?>