_binary From 181e9940bbae97784b49d10a48a1303b334c736a Mon Sep 17 00:00:00 2001
From: epinapala <epinapala@ebay.com>
Date: Sat, 1 Nov 2014 13:27:11 -0700
Subject: [PATCH 1/2] - Remove Unneeded action attributes with empty values on
 all Forms - Added Keyboard shortcuts for Bold,Italic & Underline. - Fixes for
 hyperlink wiki parsing. - Added definition lists for wiki. - Added wiki
 parser for definition lists.

---
 controllers/components/social_component.php        |   4 ++
 css/editor.css                                     |   7 +++
 locale/ar/configure.ini                            |   6 +++
 locale/bn/configure.ini                            |   6 +++
 locale/de/configure.ini                            |   6 +++
 locale/en-US/configure.ini                         |   6 +++
 locale/es/configure.ini                            |   6 +++
 locale/fa/configure.ini                            |   6 +++
 locale/fr-FR/configure.ini                         |   6 +++
 locale/he/configure.ini                            |   6 +++
 locale/hi/configure.ini                            |   6 +++
 locale/in-ID/configure.ini                         |   6 +++
 locale/it/configure.ini                            |   6 +++
 locale/ja/configure.ini                            |   6 +++
 locale/kn/configure.ini                            |   6 +++
 locale/ko/configure.ini                            |   6 +++
 locale/pl/configure.ini                            |   6 +++
 locale/pt/configure.ini                            |   6 +++
 locale/ru/configure.ini                            |   6 +++
 locale/te/configure.ini                            |   6 +++
 locale/th/configure.ini                            |   6 +++
 locale/tr/configure.ini                            |   6 +++
 locale/vi-VN/configure.ini                         |   6 +++
 locale/zh-CN/configure.ini                         |   6 +++
 .../wiki_button_images/wikibtn-definitionlist.png  | Bin 0 -> 6714 bytes
 scripts/basic.js                                   |  18 +++++---
 scripts/wiki.js                                    |  49 ++++++++++++++++++---
 views/elements/editclassifier_element.php          |   4 +-
 views/elements/editmix_element.php                 |   2 +-
 views/elements/manageclassifiers_element.php       |   2 +-
 views/elements/managelocales_element.php           |   2 +-
 views/elements/managemachines_element.php          |   2 +-
 views/elements/mixcrawls_element.php               |   2 +-
 views/elements/resultseditor_element.php           |   2 +-
 views/elements/serversettings_element.php          |   2 +-
 views/machinestatus_view.php                       |   2 +-
 36 files changed, 210 insertions(+), 20 deletions(-)
 create mode 100644 resources/wiki_button_images/wikibtn-definitionlist.png

diff --git a/controllers/components/social_component.php b/controllers/components/social_component.php
index e983004..823c041 100644
--- a/controllers/components/social_component.php
+++ b/controllers/components/social_component.php
@@ -1887,6 +1887,10 @@ EOD;
                 'wiki_js_link_text :"'. tl('wiki_js_link_text').'",'.
                 'wiki_js_link_url :"'. tl('wiki_js_link_url').'",'.
                 'wiki_js_placeholder :"'. tl('wiki_js_placeholder').'",'.
+                'wiki_js_definitionlist_item :"'.
+                tl('wiki_js_definitionlist_item').'",'.
+                'wiki_js_definitionlist_definition :"'.
+                tl('wiki_js_definitionlist_definition').'",'.
                 'wiki_js_slide_sample_title :"'.
                     tl('wiki_js_slide_sample_title').'",'.
                 'wiki_js_slide_sample_bullet :"'.
diff --git a/css/editor.css b/css/editor.css
index 292d7cc..5f4f40f 100755
--- a/css/editor.css
+++ b/css/editor.css
@@ -174,6 +174,12 @@
     background: url(../resources/wiki_button_images/wikibtn-slide.png)
         no-repeat;
 }
+
+.wikibtn-definitionlist
+{
+    background: url(../resources/wiki_button_images/wikibtn-definitionlist.png)
+    no-repeat;
+}
 .wikibtn-bold:hover,
 .wikibtn-bullets:hover,
 .wikibtn-heading:hover,
@@ -187,6 +193,7 @@
 .wikibtn-table:hover,
 .wikibtn-underline:hover,
 .wikibtn-slide:hover
+.wikibtn-definitionlist:hover
 {
     background-position: 0 -36px;
 }
\ No newline at end of file
diff --git a/locale/ar/configure.ini b/locale/ar/configure.ini
index 7e2660c..c022cdf 100755
--- a/locale/ar/configure.ini
+++ b/locale/ar/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "حدد تتبع الارتباطات"
 ;
diff --git a/locale/bn/configure.ini b/locale/bn/configure.ini
index 2d36da9..083293c 100755
--- a/locale/bn/configure.ini
+++ b/locale/bn/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/de/configure.ini b/locale/de/configure.ini
index e8242c0..80d6805 100755
--- a/locale/de/configure.ini
+++ b/locale/de/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/en-US/configure.ini b/locale/en-US/configure.ini
index 0b0b9a7..2c8c571 100755
--- a/locale/en-US/configure.ini
+++ b/locale/en-US/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = "Title"
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = "Slide Item"
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = "Item"
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = "Definition"
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "Select Crawl"
 ;
diff --git a/locale/es/configure.ini b/locale/es/configure.ini
index 1c648b7..0cd39e7 100755
--- a/locale/es/configure.ini
+++ b/locale/es/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "Seleccionar Rastreo"
 ;
diff --git a/locale/fa/configure.ini b/locale/fa/configure.ini
index d0da463..430ef76 100755
--- a/locale/fa/configure.ini
+++ b/locale/fa/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "یک خزش انتخاب کنید"
 ;
diff --git a/locale/fr-FR/configure.ini b/locale/fr-FR/configure.ini
index 72871cb..095fad8 100755
--- a/locale/fr-FR/configure.ini
+++ b/locale/fr-FR/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/he/configure.ini b/locale/he/configure.ini
index a159f08..1d8210f 100755
--- a/locale/he/configure.ini
+++ b/locale/he/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/hi/configure.ini b/locale/hi/configure.ini
index b6f6e8f..ed09a28 100755
--- a/locale/hi/configure.ini
+++ b/locale/hi/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/in-ID/configure.ini b/locale/in-ID/configure.ini
index 350b40d..c952960 100755
--- a/locale/in-ID/configure.ini
+++ b/locale/in-ID/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/it/configure.ini b/locale/it/configure.ini
index cbffa98..1743972 100755
--- a/locale/it/configure.ini
+++ b/locale/it/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "Seleziona Scansione"
 ;
diff --git a/locale/ja/configure.ini b/locale/ja/configure.ini
index 4d0c8df..c8c2b30 100755
--- a/locale/ja/configure.ini
+++ b/locale/ja/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/kn/configure.ini b/locale/kn/configure.ini
index a070165..c1fb5fd 100755
--- a/locale/kn/configure.ini
+++ b/locale/kn/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "ಕ್ರಾವ್ಲನ್ನು ಆಯ್ಕೆ ಮಾಡಿ"
 ;
diff --git a/locale/ko/configure.ini b/locale/ko/configure.ini
index fc28914..2b69957 100755
--- a/locale/ko/configure.ini
+++ b/locale/ko/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/pl/configure.ini b/locale/pl/configure.ini
index f9bae52..7e5652a 100755
--- a/locale/pl/configure.ini
+++ b/locale/pl/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/pt/configure.ini b/locale/pt/configure.ini
index 563dfa2..7b3ceb7 100755
--- a/locale/pt/configure.ini
+++ b/locale/pt/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/ru/configure.ini b/locale/ru/configure.ini
index 9009366..3bc1411 100755
--- a/locale/ru/configure.ini
+++ b/locale/ru/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/te/configure.ini b/locale/te/configure.ini
index 7fc63e2..c5c9cca 100755
--- a/locale/te/configure.ini
+++ b/locale/te/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "క్రాల్ ఎంచుకోండి"
 ;
diff --git a/locale/th/configure.ini b/locale/th/configure.ini
index bd4a43d..42e7c03 100755
--- a/locale/th/configure.ini
+++ b/locale/th/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/tr/configure.ini b/locale/tr/configure.ini
index 431967b..0e00aa1 100755
--- a/locale/tr/configure.ini
+++ b/locale/tr/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = ""
 ;
diff --git a/locale/vi-VN/configure.ini b/locale/vi-VN/configure.ini
index ddc3c03..5fb59af 100755
--- a/locale/vi-VN/configure.ini
+++ b/locale/vi-VN/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "Chọn thu thập th&ocirc;ng tin"
 ;
diff --git a/locale/zh-CN/configure.ini b/locale/zh-CN/configure.ini
index a246374..7faed92 100755
--- a/locale/zh-CN/configure.ini
+++ b/locale/zh-CN/configure.ini
@@ -951,6 +951,12 @@ wiki_js_slide_sample_title = ""
 ; social_component.php line: 1819
 wiki_js_slide_sample_bullet = ""
 ;
+; social_component.php line: 1891
+wiki_js_definitionlist_item = ""
+;
+; social_component.php line: 1893
+wiki_js_definitionlist_definition = ""
+;
 ; social_component.php line: 1859
 social_component_select_crawl = "搜尋選擇"
 ;
diff --git a/resources/wiki_button_images/wikibtn-definitionlist.png b/resources/wiki_button_images/wikibtn-definitionlist.png
new file mode 100644
index 0000000000000000000000000000000000000000..e17162dd729546095b62ee14ced273493708c33b
GIT binary patch
diff --git a/scripts/basic.js b/scripts/basic.js
index a088422..8d71e89 100755
--- a/scripts/basic.js
+++ b/scripts/basic.js
@@ -278,13 +278,13 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
         return '<a href="' + l + '">' + l + '</a>';
     });
     //Regex replace for external links
-    html = html.replace(/[\[](http.*)[!\]]/g, function (m, l)
+    html = html.replace(/\[[\[](http.*)[!\]]/g, function (m, l)
     {
         // external link
-        var p = l.replace(/[\[\]]/g, '').split(/ /);
+        var p = l.replace(/[\[\]]/g, '').split(/\|/);
         var link = p.shift();
-        return '[<a href="' + link + '">' + (p.length ? p.join(' ') :
-            link) + '</a>]';
+        return '<a href="' + link + '">' + (p.length ? p.join(' ') :
+            link) + '</a>';
     });
     //Regex replace for headings
     html = html.replace(/(?:^|\n)([=]+)(.*)\1/g,
@@ -316,6 +316,14 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     {
         return contents + '<hr />';
     });
+    //Regex replace for def list
+    html = html.replace
+    (/(\A|\n);([^:]+):(.+)/g,
+        function (match, match2, match3, match4)
+        {
+            return "<dl><dt>" + match3 + "</dt><dd>"+
+            match4 + "</dd></dl>";
+        });
     //replace nowiki with pre tags
     html = html.replace(/<nowiki>(.*?)<\/nowiki>/g, function (match,
         contents)
@@ -334,7 +342,7 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     html = html.replace(/\[\[(.*?)\]\]/g, function (matches, internal_link)
     {
         var internal_link_array = internal_link.split(/\|/);
-        var page_name = internal_link_array.shift();
+        var page_name = internal_link_array.shift().replace(/ /g,"_");
         return '<a href="' + '?c=' + controller_name
         + '&a=wiki&arg=read&group_id=' + group_id + '&page_name=' + page_name
         + "&" + csrf_token_key + '=' + csrf_token_value + '">'
diff --git a/scripts/wiki.js b/scripts/wiki.js
index bc848a1..04e264c 100755
--- a/scripts/wiki.js
+++ b/scripts/wiki.js
@@ -50,6 +50,7 @@
  * "wikibtn-search"
  * "wikibtn-table"
  * "wikibtn-slide"
+ * "wikibtn-definitionlist"
  * }
  */
 /*
@@ -94,12 +95,18 @@ function editorize(id)
      check if the editor div exists.
      */
     var node = elt(id);
+
     if (node === null) {
         /*
          If the div to render wiki_editor is not found, do nothing.
          */
         alert("No textarea found with id = " + id);
         return false;
+    }else{
+        node.addEventListener("focus",function(event)
+        {
+            enableKBShortcuts(id);
+        }, true);
     }
 
     var button_string = "";
@@ -188,11 +195,18 @@ function getStandardButtonsObject()
         'wikibtn-bullets': ['* ' + tl['wiki_js_bullet'] + ' \n'],
         'wikibtn-numbers': ['# ' + tl['wiki_js_enum'] + ' \n'],
         'wikibtn-hr': ['---- \n'],
-        'wikibtn-slide': ['='+ tl['wiki_js_slide_sample_title'] +'=\n'
-            + '* '+ tl['wiki_js_slide_sample_bullet'] +'\n'
-            + '* '+ tl['wiki_js_slide_sample_bullet'] + '\n'
-            + '* '+ tl['wiki_js_slide_sample_bullet'] + '\n'
-            + '....' + '\n']
+        'wikibtn-slide': ['=' + tl['wiki_js_slide_sample_title'] + '=\n'
+        + '* ' + tl['wiki_js_slide_sample_bullet'] + '\n'
+        + '* ' + tl['wiki_js_slide_sample_bullet'] + '\n'
+        + '* ' + tl['wiki_js_slide_sample_bullet'] + '\n'
+        + '....' + '\n'],
+        'wikibtn-definitionlist': [
+            '; ' + tl['wiki_js_definitionlist_item']
+            + ' : ' + tl['wiki_js_definitionlist_definition']
+            + '' + '\n'
+            + '; ' + tl['wiki_js_definitionlist_item']
+            + ' : ' + tl['wiki_js_definitionlist_definition']
+            + '' + '\n']
     };
 }
 /*
@@ -740,3 +754,28 @@ function createSearchWidgetForm(id)
     search_elt.innerHTML = search_form;
     return search_elt;
 }
+
+function enableKBShortcuts(id)
+{
+    var ctrl_down = false;
+    document.onkeyup = function keyUp(e)
+    {
+        if(e.which == 17) ctrl_down = false;
+    };
+    document.onkeydown = function keyDown(e)
+    {
+        if(e.which == 17) ctrl_down = true;
+        if(e.which == 66 && ctrl_down == true) {
+            wikifySelection('wikibtn-bold', id);
+            return false;
+        }
+        if(e.which == 73 && ctrl_down == true) {
+            wikifySelection('wikibtn-italic', id);
+            return false;
+        }
+        if(e.which == 85 && ctrl_down == true) {
+            wikifySelection('wikibtn-underline', id);
+            return false;
+        }
+    };
+}
\ No newline at end of file
diff --git a/views/elements/editclassifier_element.php b/views/elements/editclassifier_element.php
index beb6040..ba44bce 100644
--- a/views/elements/editclassifier_element.php
+++ b/views/elements/editclassifier_element.php
@@ -62,7 +62,7 @@ class EditclassifierElement extends Element
             e(tl('editclassifier_back')) ?></a>
         </div>
         <h2><?php e(tl('editclassifier_edit_classifier')) ?></h2>
-        <form id="classifierForm" method="get" action="">
+        <form id="classifierForm" method="get">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
@@ -100,7 +100,7 @@ class EditclassifierElement extends Element
                 e('class="disabled"');
             } ?>><?php e(tl('editclassifier_update')) ?></a>]</p>
         <h3><?php e(tl('editclassifier_add_examples')) ?></h3>
-        <form id="label-docs-form" action="" method="GET">
+        <form id="label-docs-form" method="GET">
         <?php
             $td = (MOBILE) ? "</tr><td>" : "<td>";
         ?>
diff --git a/views/elements/editmix_element.php b/views/elements/editmix_element.php
index f00cfe0..14177b0 100644
--- a/views/elements/editmix_element.php
+++ b/views/elements/editmix_element.php
@@ -55,7 +55,7 @@ class EditmixElement extends Element
         ><?php e(tl('editmix_element_back_to_mix'))?></a>
         </div>
         <h2><?php e(tl('mixcrawls_element_edit_mix'))?></h2>
-        <form id="mixForm" method="get" action=''>
+        <form id="mixForm" method="get">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/manageclassifiers_element.php b/views/elements/manageclassifiers_element.php
index a00938c..827b4f8 100644
--- a/views/elements/manageclassifiers_element.php
+++ b/views/elements/manageclassifiers_element.php
@@ -156,7 +156,7 @@ class ManageclassifiersElement extends Element
      {
         ?>
         <h2><?php e(tl('manageclassifiers_manage_classifiers')) ?></h2>
-        <form id="classifiersForm" method="get" action=''>
+        <form id="classifiersForm" method="get">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/managelocales_element.php b/views/elements/managelocales_element.php
index 66cb435..01952a3 100644
--- a/views/elements/managelocales_element.php
+++ b/views/elements/managelocales_element.php
@@ -138,7 +138,7 @@ class ManagelocalesElement extends Element
             "Add Locale", $data[CSRF_TOKEN],$_REQUEST['c']));
         e("</h2>");
         ?>
-        <form id="addLocaleForm" method="post" action=''>
+        <form id="addLocaleForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/managemachines_element.php b/views/elements/managemachines_element.php
index 6ac7e93..61f9ccb 100644
--- a/views/elements/managemachines_element.php
+++ b/views/elements/managemachines_element.php
@@ -56,7 +56,7 @@ class ManagemachinesElement extends Element
             e($this->view->helper("helpbutton")->render(
                 "Manage Machines", $data[CSRF_TOKEN]));
             ?></h2>
-        <form id="addMachineForm" method="post" action=''>
+        <form id="addMachineForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/mixcrawls_element.php b/views/elements/mixcrawls_element.php
index e9efb6e..7100fe4 100644
--- a/views/elements/mixcrawls_element.php
+++ b/views/elements/mixcrawls_element.php
@@ -193,7 +193,7 @@ class MixcrawlsElement extends Element
     {
         ?>
         <h2><?php e(tl('mixcrawls_element_make_mix'))?></h2>
-        <form id="mixForm" method="get" action=''>
+        <form id="mixForm" method="get">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/resultseditor_element.php b/views/elements/resultseditor_element.php
index 69bfc5c..a176001 100644
--- a/views/elements/resultseditor_element.php
+++ b/views/elements/resultseditor_element.php
@@ -53,7 +53,7 @@ class ResultsEditorElement extends Element
     ?>
         <div class="current-activity">
         <h2><?php e(tl('resultseditor_element_edit_page'))?></h2>
-        <form id="urlLookupForm" method="post" action=''>
+        <form id="urlLookupForm" method="post">
         <div  class="top-margin"><b><label for="edited-result-pages"><?php
             e(tl('resultseditor_element_edited_pages'))?></label></b>
         <input type="hidden" name="c" value="admin" />
diff --git a/views/elements/serversettings_element.php b/views/elements/serversettings_element.php
index 70d9c1f..5b9949e 100644
--- a/views/elements/serversettings_element.php
+++ b/views/elements/serversettings_element.php
@@ -52,7 +52,7 @@ class ServersettingsElement extends Element
     {
     ?>
         <div class="current-activity">
-        <form id="serverSettingsForm" method="post" action=''>
+        <form id="serverSettingsForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/machinestatus_view.php b/views/machinestatus_view.php
index 4cee165..061e40c 100644
--- a/views/machinestatus_view.php
+++ b/views/machinestatus_view.php
@@ -64,7 +64,7 @@ class MachinestatusView extends View
             $off_news_updater = $base_url ."newsmode&amp;news_mode=news_off";
             $caution = ($data['MACHINES']['NAME_SERVER']["news_updater"] == 0);
         ?></h3>
-        <form id="newsModeForm" method="post" action=''>
+        <form id="newsModeForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
-- 
1.9.3 (Apple Git-50)


From af5c63daa7c7f2cdf9b820e3f1d3a6299524ee2f Mon Sep 17 00:00:00 2001
From: epinapala <epinapala@ebay.com>
Date: Tue, 4 Nov 2014 20:08:55 -0800
Subject: [PATCH 2/2] - Remove all instances of action='#' action="#"
 action='./' action="./" - Group Definition list along with other list
 buttons. - Fix for definition list hover icon. - Resource parsing for
 images,files and videos.

---
 css/editor.css                           |  2 +-
 scripts/basic.js                         | 24 ++++++++++++++++++------
 scripts/wiki.js                          |  4 ++--
 views/elements/configure_element.php     |  2 +-
 views/elements/manageaccount_element.php |  4 ++--
 views/elements/managegroups_element.php  |  8 ++++----
 views/elements/manageroles_element.php   |  2 +-
 views/elements/manageusers_element.php   |  6 +++---
 views/elements/mixcrawls_element.php     |  2 +-
 views/elements/searchsources_element.php |  2 +-
 views/elements/security_element.php      |  2 +-
 views/elements/wiki_element.php          | 10 +++++-----
 views/helpers/pagingtable_helper.php     |  2 +-
 views/helpers/searchform_helper.php      |  2 +-
 views/recover_view.php                   |  2 +-
 views/register_view.php                  |  4 ++--
 views/signin_view.php                    |  4 ++--
 views/suggest_view.php                   |  2 +-
 18 files changed, 48 insertions(+), 36 deletions(-)

diff --git a/css/editor.css b/css/editor.css
index 5f4f40f..3b3d11d 100755
--- a/css/editor.css
+++ b/css/editor.css
@@ -192,7 +192,7 @@
 .wikibtn-strike:hover,
 .wikibtn-table:hover,
 .wikibtn-underline:hover,
-.wikibtn-slide:hover
+.wikibtn-slide:hover,
 .wikibtn-definitionlist:hover
 {
     background-position: 0 -36px;
diff --git a/scripts/basic.js b/scripts/basic.js
index 8d71e89..ab55bd5 100755
--- a/scripts/basic.js
+++ b/scripts/basic.js
@@ -307,9 +307,21 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     html = html.replace(/\(\(resource:(.+?)\|(.+?)\)\)/g,
         function (match, contents, desc)
         {
-            return '<img src="' + "?c=resource&a=get&f=resources&g=" +
-            group_id + "&p=" + page_id + "&n=" + contents +
-            '" alt="' + desc + '" class="wiki-resource-image"/>';
+            if((/\.(gif|jpg|jpeg|tiff|png|bmp|tif)$/i).test(contents)) {
+                return '<img src="' + "?c=resource&a=get&f=resources&g=" +
+                group_id + "&p=" + page_id + "&n=" + contents +
+                '" alt="' + desc + '" class="wiki-resource-image"/>';
+            } else if((/\.(avi|m4v|flv|wmv|mp4|webm|ogg|mov|mpg)$/i)
+                    .test(contents)) {
+                return '<video style="width:100%" controls="controls">' +
+                '<source src="./?c=resource&amp;a=get&amp;f=resources&amp;g=' +
+                group_id + '&amp;p=' + page_id + '&amp;n=' + contents +
+                '" type="video/mp4">' + desc + '</video>';
+            } else {
+                return '<a href="' + "?c=resource&a=get&f=resources&g=" +
+                group_id + "&p=" + page_id + "&n=" + contents +
+                '" alt="' + desc + '"/>' + desc + '</a>';
+            }
         });
     //Regex replace for HR
     html = html.replace(/----(.*?)/g, function (match, contents)
@@ -321,7 +333,7 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     (/(\A|\n);([^:]+):(.+)/g,
         function (match, match2, match3, match4)
         {
-            return "<dl><dt>" + match3 + "</dt><dd>"+
+            return "<dl><dt>" + match3 + "</dt><dd>" +
             match4 + "</dd></dl>";
         });
     //replace nowiki with pre tags
@@ -334,7 +346,7 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     html = html.replace(/(?:^|\n+)([^# =\*<].+)(?:\n+|$)/gm,
         function (match, contents)
         {
-            if (contents.match(/^\^+$/))
+            if(contents.match(/^\^+$/))
                 return contents;
             return "\n<div>" + contents + "</div>\n";
         });
@@ -342,7 +354,7 @@ function parseWikiContent(wiki_text, group_id, page_id, controller_name,
     html = html.replace(/\[\[(.*?)\]\]/g, function (matches, internal_link)
     {
         var internal_link_array = internal_link.split(/\|/);
-        var page_name = internal_link_array.shift().replace(/ /g,"_");
+        var page_name = internal_link_array.shift().replace(/ /g, "_");
         return '<a href="' + '?c=' + controller_name
         + '&a=wiki&arg=read&group_id=' + group_id + '&page_name=' + page_name
         + "&" + csrf_token_key + '=' + csrf_token_value + '">'
diff --git a/scripts/wiki.js b/scripts/wiki.js
index 04e264c..74e5663 100755
--- a/scripts/wiki.js
+++ b/scripts/wiki.js
@@ -194,7 +194,6 @@ function getStandardButtonsObject()
         'wikibtn-hyperlink': ['[[', ']]'],
         'wikibtn-bullets': ['* ' + tl['wiki_js_bullet'] + ' \n'],
         'wikibtn-numbers': ['# ' + tl['wiki_js_enum'] + ' \n'],
-        'wikibtn-hr': ['---- \n'],
         'wikibtn-slide': ['=' + tl['wiki_js_slide_sample_title'] + '=\n'
         + '* ' + tl['wiki_js_slide_sample_bullet'] + '\n'
         + '* ' + tl['wiki_js_slide_sample_bullet'] + '\n'
@@ -206,7 +205,8 @@ function getStandardButtonsObject()
             + '' + '\n'
             + '; ' + tl['wiki_js_definitionlist_item']
             + ' : ' + tl['wiki_js_definitionlist_definition']
-            + '' + '\n']
+            + '' + '\n'],
+        'wikibtn-hr': ['---- \n'],
     };
 }
 /*
diff --git a/views/elements/configure_element.php b/views/elements/configure_element.php
index 3139e3b..0abc1c0 100644
--- a/views/elements/configure_element.php
+++ b/views/elements/configure_element.php
@@ -86,7 +86,7 @@ class ConfigureElement extends Element
                     e(tl('configure_element_load_or_create')); ?></button>
         </div>
         </form>
-        <form id="configureProfileForm" method="post" action='#'
+        <form id="configureProfileForm" method="post"
             enctype='multipart/form-data'>
         <?php if(isset($data['WORK_DIRECTORY'])) { ?>
             <input type="hidden" name="WORK_DIRECTORY" value="<?php
diff --git a/views/elements/manageaccount_element.php b/views/elements/manageaccount_element.php
index efb48ba..626beba 100755
--- a/views/elements/manageaccount_element.php
+++ b/views/elements/manageaccount_element.php
@@ -78,7 +78,7 @@ class ManageaccountElement extends Element
             <?php
             if(isset($data['EDIT_PASSWORD']) &&
                 AUTHENTICATION_MODE == ZKP_AUTHENTICATION) { ?>
-                <form action="#" method="post"
+                <form method="post"
                     onsubmit="registration('new-password','retype-password',
                     'fiat-shamir-modulus')">
                 <input type="hidden" name="fiat_shamir_modulus"
@@ -86,7 +86,7 @@ class ManageaccountElement extends Element
                     value="<?php e($data['FIAT_SHAMIR_MODULUS']) ?>"/>
                 <?php
             } else { ?>
-                <form id="changeUserForm" method="post" action='#'
+                <form id="changeUserForm" method="post"
                     autocomplete="off" enctype="multipart/form-data">
             <?php
             }?>
diff --git a/views/elements/managegroups_element.php b/views/elements/managegroups_element.php
index e360aeb..f2810c1 100755
--- a/views/elements/managegroups_element.php
+++ b/views/elements/managegroups_element.php
@@ -162,7 +162,7 @@ class ManagegroupsElement extends Element
                                 "</span>");
                         } else {
                         ?>
-                            <form  method="get" action='./' >
+                            <form  method="get">
                             <input type="hidden" name="c" value="admin" />
                             <input type="hidden" name="<?php e(CSRF_TOKEN); ?>"
                                 value="<?php e($data[CSRF_TOKEN]); ?>" />
@@ -297,7 +297,7 @@ class ManagegroupsElement extends Element
         }
 
         ?>
-        <form id="group-form" method="post" action='./'>
+        <form id="group-form" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
@@ -519,7 +519,7 @@ class ManagegroupsElement extends Element
         <div class='float-opposite'><a href='<?php e($base_url); ?>'><?php
             e(tl('managegroups_element_group_info')); ?></a></div>
         <h2><?php e(tl('managegroups_element_invite_users_group')); ?></h2>
-        <form id="group-form" method="post" action='./'>
+        <form id="group-form" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
@@ -565,7 +565,7 @@ class ManagegroupsElement extends Element
         <div class='float-opposite'><a href='<?php e($base_url); ?>'><?php
             e(tl('managegroups_element_addgroup_form')); ?></a></div>
         <h2><?php e(tl('managegroups_element_transfer_group_owner')); ?></h2>
-        <form id="group-form" method="post" action='./'>
+        <form id="group-form" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/manageroles_element.php b/views/elements/manageroles_element.php
index 39a0482..72b4d5d 100644
--- a/views/elements/manageroles_element.php
+++ b/views/elements/manageroles_element.php
@@ -134,7 +134,7 @@ class ManagerolesElement extends Element
             e("<h2>".tl('manageroles_element_add_role'). "</h2>");
         }
         ?>
-        <form id="addRoleForm" method="post" action='#'>
+        <form id="addRoleForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/manageusers_element.php b/views/elements/manageusers_element.php
index 0197106..e909261 100644
--- a/views/elements/manageusers_element.php
+++ b/views/elements/manageusers_element.php
@@ -108,7 +108,7 @@ class ManageusersElement extends Element
                                 "</span>");
                         } else {
                         ?>
-                        <form  method="get" action='#' >
+                        <form  method="get">
                         <input type="hidden" name="c" value="admin" />
                         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>"
                             value="<?php e($data[CSRF_TOKEN]); ?>" />
@@ -189,14 +189,14 @@ class ManageusersElement extends Element
         }
         ?>
        <?php if($data['AUTHENTICATION_MODE'] == ZKP_AUTHENTICATION) { ?>
-                <form action="#" method="post"
+                <form method="post"
                     onsubmit="registration('pass-word','retype-password',
                     'fiat-shamir-modulus')">
                 <input type="hidden" name="fiat_shamir_modulus"
                     id="fiat-shamir-modulus"
                     value="<?php e($data['FIAT_SHAMIR_MODULUS']) ?>"/>
        <?php } else { ?>
-               <form id="user-form" method="post" action='#' autocomplete="off">
+               <form id="user-form" method="post" autocomplete="off">
        <?php }?>
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
diff --git a/views/elements/mixcrawls_element.php b/views/elements/mixcrawls_element.php
index 7100fe4..8f63739 100644
--- a/views/elements/mixcrawls_element.php
+++ b/views/elements/mixcrawls_element.php
@@ -147,7 +147,7 @@ class MixcrawlsElement extends Element
         <div class="float-opposite"><a  href="javascript:setDisplay(
             'share-mix',false);"><?php e(tl('mixcrawls_view_back'));?></a></div>
         <h2><?php e(tl('mixcrawls_element_share_mix_group')); ?></h2>
-        <form action="./" >
+        <form>
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="a" value="mixCrawls" />
         <input type="hidden" name="arg" value="sharemix" />
diff --git a/views/elements/searchsources_element.php b/views/elements/searchsources_element.php
index a42d122..a8b6841 100644
--- a/views/elements/searchsources_element.php
+++ b/views/elements/searchsources_element.php
@@ -68,7 +68,7 @@ class SearchsourcesElement extends Element
             <?php
         }
         ?>
-        <form id="addSearchSourceForm" method="post" action='#'>
+        <form id="addSearchSourceForm" method="post">
         <input type="hidden" name="c" value="admin" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/elements/security_element.php b/views/elements/security_element.php
index 56c6d44..261696f 100755
--- a/views/elements/security_element.php
+++ b/views/elements/security_element.php
@@ -56,7 +56,7 @@ class SecurityElement extends Element
         ?>
         <div class = "current-activity">
         <h2><?php e(tl('security_element_auth_captcha'));?></h2>
-        <form class="top-margin" method="post" action="#">
+        <form class="top-margin" method="post">
             <input type="hidden" name="c" value="admin" />
             <input type="hidden" name="a" value="security"/>
             <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
diff --git a/views/elements/wiki_element.php b/views/elements/wiki_element.php
index a419236..3ea8458 100644
--- a/views/elements/wiki_element.php
+++ b/views/elements/wiki_element.php
@@ -220,7 +220,7 @@ class WikiElement extends Element implements CrawlConstants
                 "</h2>");
             e("<p>".tl("wiki_view_create_edit")."</p>");
             e("<p>".tl("wiki_view_use_form_below")."</p>");?>
-            <form id="editpageForm" method="get" action='#'>
+            <form id="editpageForm" method="get">
             <input type="hidden" name="c" value="<?php e($data['CONTROLLER']);
                 ?>" />
             <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
@@ -280,7 +280,7 @@ class WikiElement extends Element implements CrawlConstants
             '&amp;just_thread='.$data['DISCUSS_THREAD']);?>" ><?php
             e(tl('wiki_element_discuss'))?></a>]
         </div>
-        <form id="editpageForm" method="post" action='./'
+        <form id="editpageForm" method="post"
             onsubmit="elt('caret-pos').value =
             (elt('wiki-page').selectionStart) ?
             elt('wiki-page').selectionStart : 0;
@@ -426,7 +426,7 @@ class WikiElement extends Element implements CrawlConstants
         <p><?php e(tl('wiki_element_ml_description'))?></p>
         </div>
         <div>
-        <form id="resourceUploadForm" method="post" action='./'
+        <form id="resourceUploadForm" method="post"
             enctype="multipart/form-data">
         <input type="hidden" name="c" value="<?php e($data['CONTROLLER']);
             ?>" />
@@ -633,7 +633,7 @@ class WikiElement extends Element implements CrawlConstants
         e("<h2>".tl("wiki_view_wiki_page_list",
             $data["GROUP"]["GROUP_NAME"]). "</h2>");
         ?>
-        <form id="editpageForm" method="get" action='#'>
+        <form id="editpageForm" method="get">
         <input type="hidden" name="c" value="<?php e($data['CONTROLLER']);
             ?>" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
@@ -700,7 +700,7 @@ class WikiElement extends Element implements CrawlConstants
         <?php
         if(count($data['HISTORY']) > 1) { ?>
             <div>
-            <form id="differenceForm" method="get" action='#'>
+            <form id="differenceForm" method="get">
             <input type="hidden" name="c" value="group" />
             <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
                 e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/helpers/pagingtable_helper.php b/views/helpers/pagingtable_helper.php
index a91aa60..8c97653 100644
--- a/views/helpers/pagingtable_helper.php
+++ b/views/helpers/pagingtable_helper.php
@@ -109,7 +109,7 @@ class PagingtableHelper extends Helper
         <div>
         <?php
             if(isset($data["NO_FORM_TAG"]) && $data["NO_FORM_TAG"]) {
-                e('<form  method="get" action="#" >');
+                e('<form  method="get">');
             }
             $name = isset($data['NAME']) ? $data['NAME'] : "";
             $bound_url = $base_url."&amp;arg=".$data[$d['FORM_TYPE']];
diff --git a/views/helpers/searchform_helper.php b/views/helpers/searchform_helper.php
index c0d842f..da96dd5 100644
--- a/views/helpers/searchform_helper.php
+++ b/views/helpers/searchform_helper.php
@@ -82,7 +82,7 @@ class SearchformHelper extends Helper
         e("</h2>");
         $item_sep = (MOBILE) ? "<br />" : "</td><td>";
         ?>
-        <form id="search-form" method="post" action='./' autocomplete="off">
+        <form id="search-form" method="post" autocomplete="off">
         <input type="hidden" name="c" value="<?php e($controller); ?>" />
         <input type="hidden" name="<?php e(CSRF_TOKEN); ?>" value="<?php
             e($data[CSRF_TOKEN]); ?>" />
diff --git a/views/recover_view.php b/views/recover_view.php
index 3321ab3..1f54c3e 100644
--- a/views/recover_view.php
+++ b/views/recover_view.php
@@ -72,7 +72,7 @@ class RecoverView extends View
                 src="<?php e($logo); ?>" alt="<?php e($this->logo_alt_text);
                 ?>"/></a><span> - <?php e(tl('recover_view_recover_password'));
                 ?></span></h1>
-            <form method="post" action="./">
+            <form method="post">
             <input type="hidden" name="c" value="register" />
             <input type="hidden" name="a" value="<?php e($activity); ?>" />
             <?php if(isset($_SESSION["random_string"])) { ?>
diff --git a/views/register_view.php b/views/register_view.php
index 909e117..7def706 100755
--- a/views/register_view.php
+++ b/views/register_view.php
@@ -157,7 +157,7 @@ class RegisterView extends View
                 ?></span></h1>
             <?php
             if($data['AUTHENTICATION_MODE'] == ZKP_AUTHENTICATION) { ?>
-                <form action="#" method="post"
+                <form method="post"
                     onsubmit="registration('pass-word', 'retype-password', <?php
                     ?>'fiat-shamir-modulus')">
                 <input type="hidden" name="fiat_shamir_modulus"
@@ -166,7 +166,7 @@ class RegisterView extends View
                 <?php
             } else {
                 ?>
-                <form method="post" action="#">
+                <form method="post">
                 <?php
             }
             ?>
diff --git a/views/signin_view.php b/views/signin_view.php
index 6152229..9761954 100755
--- a/views/signin_view.php
+++ b/views/signin_view.php
@@ -65,7 +65,7 @@ class SigninView extends View
                 e($this->logo_alt_text); ?>" /></a><span> - <?php
                 e(tl('signin_view_signin')); ?></span></h1>
         <?php if (isset($data['AUTH_ITERATION'])) { ?>
-                <form  method="post" id="zkp-form" action="#"
+                <form  method="post" id="zkp-form"
                     onsubmit="generateKeys('zkp-form','username', <?php
                     ?>'password', 'fiat-shamir-modulus', '<?php
                     e($_SESSION['SALT_VALUE']); ?>', <?php
@@ -81,7 +81,7 @@ class SigninView extends View
                     name="auth_fail_message" value="<?php
                     e(tl('sigin_view_login_failed')); ?>" />
         <?php } else {?>
-                <form method="post" action="#">
+                <form method="post">
         <?php } ?>
         <div class="login">
             <table>
diff --git a/views/suggest_view.php b/views/suggest_view.php
index 4ca4262..d812d4f 100644
--- a/views/suggest_view.php
+++ b/views/suggest_view.php
@@ -72,7 +72,7 @@ class SuggestView extends View
                 ?>"/></a><span> - <?php e(tl('suggest_view_suggest_url'));
                 ?></span></h1>
             <p class="center"><?php e(tl('suggest_view_instructions'));?></p>
-            <form method="post" action="#">
+            <form method="post">
             <?php  if(isset($_SESSION["random_string"])) { ?>
             <input type='hidden' name='nonce_for_string'
             id='nonce_for_string' />
-- 
1.9.3 (Apple Git-50)

