Skip to content
Permalink
Browse files

[ktai-render] fix give data-ajax="false" (allow empty value)

`<form action="" ...>` のように、属性値が空の場合に正常に処理できない問題の修正。

ref.
[tpMailFormからのスマホ入力エラーについて](http://xoops.hypweb.net/modules/forum/index.php?topic_id=3280)
  • Loading branch information...
nao-pon committed Apr 17, 2013
1 parent 6880756 commit 493fd7e3c6fa8cef26f28b1311fb31cad3c48b8f
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/class/hyp_common/ktairender/hyp_ktai_render.php
@@ -514,7 +514,7 @@ function html_reduce_smart($body) {
$body = preg_replace_callback('#(<[^>]+>[^<>]*)(<input[^>]+type=["\']?(?:checkbox|radio)[^>/]+)/?'.'>([^<>]*<[^>]+>)#i', array(& $this, '_check_checkbox_smart'), $body);
// give data-ajax="false"
$body = preg_replace_callback('#(<script.+?/script>)|((<(?:a|form)[^>]+?)((?:href|action)=("|\')([^>]+?)\\5)([^>]*?>))#isS', array(& $this, '_check_href_smart'), $body);
$body = preg_replace_callback('#(<script.+?/script>)|((<(?:a|form)[^>]+?)((?:href|action)=("|\')([^>]*?)\\5)([^>]*?>))#isS', array(& $this, '_check_href_smart'), $body);
// for Smarty {mailto encode="javascript"}
$body = preg_replace_callback('#<script type="text/javascript">eval\((unescape\(\'[%0-9a-f]+\'\))\)</script>#S', array(& $this, '_check_js_email'), $body);

0 comments on commit 493fd7e

Please sign in to comment.
You can’t perform that action at this time.