Esempio n. 1
0
 public static function decodeSecureMagic($data, $sanitizeLevel = self::SANITIZE_HTML)
 {
     xapp_import('xapp.Utils.SystemTextEncoding');
     return XApp_SystemTextEncoding::fromUTF8(self::sanitizeEx(self::securePath(XApp_SystemTextEncoding::magicDequote($data)), $sanitizeLevel));
 }
Esempio n. 2
0
 /**
  * Successive call of magicDequote and fromUTF8
  * @static
  * @param string $filesystemElement
  * @return string
  */
 static function fromPostedFileName($filesystemElement)
 {
     return XApp_SystemTextEncoding::fromUTF8(XApp_SystemTextEncoding::magicDequote($filesystemElement));
 }